geolocation

How to display my location on Google Maps for Android API v2

空扰寡人 提交于 2019-11-27 09:31:34
问题 I've looked high and low for an answer on this, and no one, in any forum question has been able to help. I've searched through the tutorials. The API Guide says: The My Location button appears in the top right corner of the screen only when the My Location layer is enabled. So I've been looking for this My Location layer and have been unable to find anything. How do I show my location on a Google Map? 回答1: The API Guide has it all wrong (really Google?). With Maps API v2 you do not need to

How to draw path as I move starting from my current location using Google Maps

﹥>﹥吖頭↗ 提交于 2019-11-27 09:23:10
问题 I am trying to draw route as I move from my current location. I am facing a big problem in drawing route dynamically please help me to solve it. I am having marker at my current location in my map. As soon as I start moving I want the map to start drawing lines in the path I move. I do not have two fixed points. Can any one please provide me a solution to over come this. I have seen lot of answers in SO which draws path between two fixed points. But here only my initial point is fixed. I am

I want to find current location of user in php

北慕城南 提交于 2019-11-27 08:47:24
i am using http://api.easyjquery.com/ips/?ip=115.119.253.90&full=true this api for getting current location but when this site goes down i am not able to get current location. can google provide any api to find current location using ip. Moyed Ansari If you don't want to use the HTML5 Geolocoation API , you can detect a bit from IP. Or try other other solution The Google Geocoding API Geolocator-PHP Maxmind http://www.maxmind.com/app/php ipinfodb 来源: https://stackoverflow.com/questions/10562265/i-want-to-find-current-location-of-user-in-php

how to convert between degrees, minutes, seconds to Decimal coordinates

ぃ、小莉子 提交于 2019-11-27 08:22:09
Looking for a java utility. It is even better if you can tell me how to do it using geotools library. By "Decimal coordinates" do you mean latitude and longitude (also known as the decimal degree)? If so, what you're trying to do is pretty easy: Given a DMS (Degrees, Minutes, Seconds) coordinate such as W87°43′41″, it's trivial to convert it to a number of decimal degrees using the following method: Calculate the total number of seconds, 43′41″ = (43*60 + 41) = 2621 seconds. The fractional part is total number of seconds divided by 3600. 2621 / 3600 = ~0.728056 Add fractional degrees to whole

Cell triangulation on BlackBerry

Deadly 提交于 2019-11-27 07:33:59
问题 Any ideas about how to do cell triangulation for Blackberry and J2ME phones? I know how to get the cell id but I couldn't do triangulation. 回答1: If you can do an HTTP Post to an arbitray website, you can use Google's geolocation api. Simply POST data in the following JSON format to https://www.google.com/loc/json. See the above link on how to add more information to your json from wifi etc. to greatly increase the accuracy of the result. And pay special attention to the mobile country code,

Identifying country by IP address

此生再无相见时 提交于 2019-11-27 07:24:33
Is there a way to figure out the country name just by looking at an IP address? I mean, do countries have specific ranges of IP addresses? For example, Australia can have IP addresses only in the range of 123.45.56.89 - 231.54.65.98 (just an example) Chris Gessler I think what you're looking for is an IP Geolocation database or service provider. There are many out there and some are free (get what you pay for). Although I haven't used this service before, it claims to be in real-time. https://kickfire.com/kf-api But just do a google search on IP geo and you'll get more results than you need.

Get current location using json

自作多情 提交于 2019-11-27 07:20:58
问题 Hi i a m writing an application whih gets the current latitude and longitude and convert it to corrsponding address.i can get the lattitude and longitutde but how to convert it to the corresponding address using json. i am new to json. i tried some sample codes butnot getting the address This is my code import java.io.IOException; import java.util.List; import java.util.Locale; import android.content.Context; import android.location.Address; import android.location.Geocoder; import android

OnLocationChanged callback is never called

孤人 提交于 2019-11-27 06:57:04
I am trying to get the users current location using the LocationManager . I have done a lot of research and can't seem to find anyone with the same problem. The OnLocationChanged callback never seems to be called. Below is my various code and the logcat. protected LocationListener locationListener; protected LocationManager locationManager; protected Context context; My OnCreate() method @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.v(TAG, "IN ON CREATE"); this.context = getActivity(); registerLocationUpdates(); } My registerLocationUpdates

MongoDB: Not getting correct result using $geoWithin operator

青春壹個敷衍的年華 提交于 2019-11-27 06:33:01
问题 I am using $geoWithin for circle, and i am not getting expected result. There are two collections,one for users and second for items . I am setting radius and coordinates for item. so i have to find a users within that coordinates and radius. User collection { "_id" : NumberLong(25287), "_class" : "com.samepinch.domain.user.User", "name":"XYZ", "location" : [ 74.866247, 31.63336 ] } Item collection { "_id" : NumberLong(46603), "itemName" : "Chandigarh", "categoryName" : "TRAVELLING",

Geolocation closest location(lat, long) from my position

吃可爱长大的小学妹 提交于 2019-11-27 06:30:46
I want to show specific information depending on where i am. I have five cities with different information, and i want to show that city(information) that i'm closest to. How to i do that the simplest way, using javascript. Ex. If i store the cities lat, long in an array var cities = [ ['new york', '111111', '222222', 'blablabla'] ['boston', '111111', '222222', 'blablabla'] ['seattle', '111111', '222222', 'blablabla'] ['london', '111111', '222222', 'blablabla'] ] And with my current location(lat, long) i want the city that i'm closet to. Andrew - OpenGeoCode Here is a basic code example using