reverse-geocoding

Get current location address for android app

主宰稳场 提交于 2019-11-27 20:00:07
问题 I do not need to display a map. However, I need to use the gps/3g network to locate my current positions ADDRESS (not long and lat) this will then be added to a automated sms response to inform a person that I currently cant reply, & the include the string address of my current location. I have the sms stuff working, just need to figure out a method of accessing the gps and pulling an address. I have seen sample code for lat/long. Perhaps I need to convert lat/long into an address within the

Reverse Geocode Location in Swift [closed]

别说谁变了你拦得住时间么 提交于 2019-11-27 19:05:23
My input is a latitude and longitude. I need to use the reverseGeocodeLocation function of swift, to give me the output of the locality. The code I have tried to use is println(geopoint.longitude) println(geopoint.latitude) var manager : CLLocationManager! var longitude :CLLocationDegrees = geopoint.longitude var latitude :CLLocationDegrees = geopoint.latitude var location: CLLocationCoordinate2D = CLLocationCoordinate2DMake(latitude, longitude) println(location) CLGeocoder().reverseGeocodeLocation(manager.location, completionHandler: {(placemarks, error) -> Void in println(manager.location)

Determine iPhone user's country

风流意气都作罢 提交于 2019-11-27 19:03:36
I need to determine at startup what country a user is in, for an iPhone application. Presumably I will have to turn on location services and do some sort of reverse geocoding. I don't really want to use a third party web service if possible, are there any other suggestions for determining country from what location services provides? Initially, I only need to check whether the user is inside the US or not, but this may change in the future to add more countries. I understand that location can not always be determined or the user may have location services turned off. Basically, I just need to

Looking for a good and free reverse geocoding API [closed]

纵饮孤独 提交于 2019-11-27 13:00:31
问题 I am familiar with two reverse geocoding APIs - Google Maps and foursquare. Both have problems. Consider lat,lng = 35.699,139.707 (Tokyo). Foursquare: GET https://api.foursquare.com/v2/venues/search?ll=35.699,139.707&oauth_token=5TJR4WQZSOW0ZWTE4ENMXKO3Y415252GITEMRPQIVPMEGCYK&v=20120723&limit=1 yields the following result: { "meta": { "code": 200 }, "notifications": [ { "type": "notificationTray", "item": { "unreadCount": 0 } } ], "response": { "venues": [ { "id": "4b64ebedf964a520e3d92ae3",

Reverse Geocoding With Google Map API And PHP To Get Nearest Location Using Lat,Long coordinates

左心房为你撑大大i 提交于 2019-11-27 12:11:26
I need a function to get an nearest address or city from coordinates(lat,long) using google map api reverse geocoding and php... Please give some sample code RedBlueThing You need to use the getLocations method on the GClientGeocoder object in the Google Maps API var point = new GLatLng (43,-75); var geocoder = new GClientGeocoder(); geocoder.getLocations (point, function(result) { // access the address from the placemarks object alert (result.address); }); EDIT : Ok. You are doing this stuff server side. This means you need to use the HTTP Geocoding service . To do this you will need to make

Geocode an IP address? [closed]

拜拜、爱过 提交于 2019-11-27 11:21:56
Does anyone know of any open RESTful API that I can call to geocode a user's IP to the latitude and longitude? Ideally, it would be something like: http://google.com/geocode_api/?IP=1.2.3.4 and it would return the latitude and longtitude. Another free REST API with city accurate information would be http://freegeoip.net Requests are fairly straight forward. You would use something like http://freegeoip.net/{format}/{ip_or_hostname} to geocode an IP address, where format can be csv , xml or json . Their website has all the details. [UPDATE:] FreeGeoIP.net was not continuously available in the

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

How can I get Chinese words using Google API with JSON?

浪子不回头ぞ 提交于 2019-11-27 04:52:49
问题 I'm using the following link. But, the result is not Chinese. My server is Amazon Web Services (AWS). 回答1: From https://developers.google.com/maps/documentation/geocoding/intro#geocoding The geocoder will do its best to provide a street address that is readable for both the user and locals. To achieve that goal, it will return street addresses in the local language, transliterated to a script readable by the user if necessary, observing the preferred language. All other addresses will be

Country name for GPS coordinates

微笑、不失礼 提交于 2019-11-27 04:23:48
问题 Is there an easy way to get the name of the country on whose territory a given point is located? I don't care too much about accuracy nor about ambiguities given by political disputes. Just need a good enough approximation. 回答1: EDIT: The Yahoo Where API is no longer available. Try the Yahoo! APIs. Latitude and Longitude Latitude and longitude can be specified for the location parameter. Latitude and longitude may be expressed as decimal degrees or degrees-minutes-seconds, with either leading

Geocoder doesn't always return a value

吃可爱长大的小学妹 提交于 2019-11-27 02:58:22
问题 I am able to successfully get lat/long and pass it to the geocoder to get an Address. However, I don't always get an address back. Seems like it takes a couple of attempts? I'm not sure why. Is there a better way for me to obtain the address at this point? public List<Address> getAddresses(){ Geocoder geocoder = new Geocoder(getApplicationContext(), Locale.getDefault()); List<Address> addresses = new ArrayList(); try { addresses = geocoder.getFromLocation(latitude, longitude, 1); } catch