reverse-geocoding

Easiest way of getting reverse geocoded current location from iOS

故事扮演 提交于 2019-11-27 01:24:27
问题 I saw from another question here : Determine iPhone user's country that it is possible to get the current country the user of the iPhone is in. And that is quite convenient for many uses. However, would it be possible to go even deeper and infer from iOS (if it has the information) which state or city the user is in as well? I suppose reverse geocoding services would be the next step if things weren't possible.. Are there even such things as a reverse geocoding service you can hire for your

Retrieving Postal Code with Google Maps Javascript API V3 Reverse Geocode

流过昼夜 提交于 2019-11-27 00:46:41
问题 I'm trying to submit a query using the postal code to my DB whenever the googlemaps viewport center changes. I know that this can be done with reverse geocoding with something like: google.maps.event.addListener(map, 'center_changed', function(){ newCenter(); }); ... function newCenter(){ var newc = map.getCenter(); geocoder.geocode({'latLng': newc}, function(results, status){ if (status == google.maps.GeocoderStatus.OK) { var newzip = results[0].address_components['postal_code']; } }); }; Of

How to obtain country, state, city from reverseGeocodeCoordinate?

无人久伴 提交于 2019-11-27 00:17:46
问题 GMSReverseGeocodeResponse contains - (GMSReverseGeocodeResult *)firstResult; whose definition is like: @interface GMSReverseGeocodeResult : NSObject<NSCopying> /** Returns the first line of the address. */ - (NSString *)addressLine1; /** Returns the second line of the address. */ - (NSString *)addressLine2; @end Is there any way to obtain the country, ISO country code, state (administrative_area_1 or corresponding one) from those two strings (valid for all the countries and all the addresses

Determine iPhone user's country

妖精的绣舞 提交于 2019-11-26 22:45:54
问题 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

Reverse Geocoding Without Web Access

旧街凉风 提交于 2019-11-26 22:39:14
问题 I am working on an application where one of the requirements is that I be able to perform realtime reverse geocoding operations based on GPS data. In particular, I must be able to determine the state/province to which a latitude, longitude pair maps and detect when we have moved from one state/province to another. I have a couple ideas so far but wondered if anyone had any ideas on either of the following: What is the best approach for tackling this problem in an efficient manner? Where is a

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

给你一囗甜甜゛ 提交于 2019-11-26 22:22:18
问题 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 回答1: 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

Get location name from Latitude & Longitude in iOS

萝らか妹 提交于 2019-11-26 22:12:24
I want to find current location name from latitude and longitude, Here is my code snippet I tried but my log shows null value in all the places except in placemark , placemark.ISOcountryCode and placemark.country I want value of placemark.locality and placemark.subLocality but it is showing null values. - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; // this creates the CCLocationManager that will find your current location locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.desiredAccuracy =

Reverse geocoding to return results only in English?

谁都会走 提交于 2019-11-26 21:50:18
问题 Using the code below I'm requesting a reverse geocoding for the current coordinate. Everything works great, except for when the device is set to a different language than English. Example: If the language of the device is Italian, and I'm in Italy, the result for country is "Italia" instead of "Italy". How can I force the results to be only in English, regardless of the language of the device? CLGeocoder *geoCoder = [[CLGeocoder alloc] init]; [geoCoder reverseGeocodeLocation:myCurrentLocation

How to get city name from latitude and longitude coordinates in Google Maps?

落花浮王杯 提交于 2019-11-26 15:40:36
How might I obtain the city name in Google Maps if I have latitude and longitude coordinates of a town or area? I tried using the latitude, longitude and I got country but I don't know how to get city name. ccheneson From a Geocoder object, you can call the getFromLocation(double, double, int) method. It will return a list of Address objects that have a method getLocality() . Geocoder gcd = new Geocoder(context, Locale.getDefault()); List<Address> addresses = gcd.getFromLocation(lat, lng, 1); if (addresses.size() > 0) { System.out.println(addresses.get(0).getLocality()); } else { // do your

How to reverse geocode without Google? [closed]

走远了吗. 提交于 2019-11-26 10:14:49
问题 Are there any web services (paid or free) out there besides the Google Maps API which allow you to reverse geocode? My particular application will have access to a latitude and longitude and I need to be able to get the US Zip Code or State. The reason I can\'t use Google is that the Terms of Service seems to indicate that if you use Google Maps API, you need to use the data to display a Google map. I am using C# .Net framework in case that\'s relevant. 回答1: I use http://nominatim