Questions tagged [reverse-geocoding]

Reverse geocoding is the process of converting geographic coordinates into a human-readable address.

The term geocoding generally refers to translating a human-readable address into a location on a map.

The process of doing the opposite, translating a location on the map into a human-readable address, is known as reverse geocoding.

878 questions
138
votes
15 answers

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

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.
UMAR-MOBITSOLUTIONS
  • 77,236
  • 95
  • 209
  • 278
57
votes
7 answers

How to reverse geocode without Google?

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…
jessegavin
  • 74,067
  • 28
  • 136
  • 164
55
votes
7 answers

Android: Reverse geocoding - getFromLocation

I am trying to get an address based on the long/lat. it appears that something like this should work? Geocoder myLocation = Geocoder(Locale.getDefault()); List myList = myLocation.getFromLocation(latPoint,lngPoint,1); The issue is that I keep…
Chrispix
  • 17,941
  • 20
  • 62
  • 70
54
votes
1 answer

Get address from co-ordinates using OpenStreetMap

I'm looking for a solution which gives an address based on co-ordinates (Latitude & Longitude) which I got from html5 geolocation api. I'm using OpenStreetMap.
37
votes
12 answers

Swift - Generate an Address Format from Reverse Geocoding

I am trying to generate a Formatted Full address using CLGeocoder in Swift 3. I referred to this SO thread to get the code given below. However, sometimes the app crashes with a 'nil' error at the line: //Address…
Jay
  • 4,873
  • 7
  • 72
  • 137
31
votes
5 answers

Geocode an IP address?

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.
Tim
  • 311
  • 1
  • 3
  • 3
27
votes
5 answers

Determine iPhone user's country

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…
Ben Williams
  • 4,695
  • 9
  • 47
  • 72
26
votes
1 answer

Reverse Geocode Location in Swift

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) …
TimWhiting
  • 2,405
  • 5
  • 21
  • 41
25
votes
4 answers

Android reverse geocoding getLocality returns often null

I am using Android Geocoding to get the current city with Address.getLocality(). It has worked fine, until just recently it appears to often return null for the locality. Here is an example: try { Geocoder c = new Geocoder(this,…
ketorin
  • 1,034
  • 2
  • 12
  • 21
24
votes
4 answers

How to obtain country, state, city from reverseGeocodeCoordinate?

GMSReverseGeocodeResponse contains - (GMSReverseGeocodeResult *)firstResult; whose definition is like: @interface GMSReverseGeocodeResult : NSObject /** Returns the first line of the address. */ - (NSString *)addressLine1; /** Returns…
user2101384
  • 375
  • 1
  • 3
  • 14
23
votes
23 answers

Retrieving Postal Code with Google Maps Javascript API V3 Reverse Geocode

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',…
19
votes
3 answers

Get current location address for android app

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…
GrumP
  • 1,183
  • 6
  • 19
  • 43
19
votes
7 answers

Country name for GPS coordinates

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.
ibz
  • 44,461
  • 24
  • 70
  • 86
18
votes
2 answers

How can I implement an offline geocoder for a single city using OSM data in android?

I am trying to develop an offline android map that makes use of OSM map tiles of a particular zoom level, For this purpose I used an open source library : Osmdroid Now, I am looking into the possibility of creating an offline geocoding/ reverse…
Pratik Bhat
  • 7,166
  • 2
  • 35
  • 57
17
votes
2 answers

Reverse Geocoding Code

I've been working on putting together the Javavscript code for Reverse Geocoding in Google maps. I thought I'd solved all the issues I had, but I'm still having problems. When I embed the Javascript code within the HTML file it works without any…
IRHM
  • 1,326
  • 11
  • 77
  • 130
1
2 3
58 59