Questions tagged [geocoding]

Geocoding is a method to find the coordinates (e.g. latitude and longitude) of a data record (e.g. an address or zip code) or of an object which represents some other geographic data (e.g. country name, landmark, etc).

Geocoding is the process of finding associated geographic coordinates (often expressed as latitude and longitude) from other geographic data, such as street addresses, or ZIP codes (postal codes). With geographic coordinates the features can be mapped and entered into Geographic Information Systems, or the coordinates can be embedded into media such as digital photographs via geotagging.

The opposite, , is finding a textual location (such as a street address), from geographic coordinates.

A common use case is to find a record based on given address data - like city name, zip code, street name and house number or special points of interest - in a geo database which holds information about longitude, latitude or nodes in a road network for each address record.

Geocoding in software programs is often either supported as an interactive dialog based process, as an automatic batch process for geocoding mass data or a combination of both methods. Geocoding can be a highly sophisticated task as it often has to deal with unstructured or poorly structured address data and ambiguous or localized representations of addresses. The quality of geocoding results depends not only on the underlying geo database but also on the quality of string parsing and search algorithms which try to find a matching record as unambiguously as possible.

Geocoding is an important feature in - for example - Geographic Information Systems (GIS), Navigation Systems, Route Planning or Transport Management Systems.

The process of adding geographical identification metadata to various media such as photographs or videos, websites, SMS messages, QR codes, or RSS feeds. This data usually consists of latitude and longitude coordinates, though they can also include altitude, bearing, distance, accuracy data, and place names.


Useful links


Related tags

3226 questions
12
votes
8 answers

Google App Engine Geohashing

I am writing a web application using GWT and App Engine. My application will need to post and query items based on their latitude, longitude. As a result of google's distributed database design you can't simple query a set of inequalities. Instead…
12
votes
4 answers

Google Maps - converting address to latitude & longitude - PHP backend?

is it possible to convert (in PHP back-end): to The code I'm currently using is the default one:
Wordpressor
  • 7,173
  • 23
  • 69
  • 108
12
votes
1 answer

Google Geocode Components two countries

How is it possible to filter the results of the Google Geocode API and the use of the components parameter for two (or more) countries, without issuing another request. Example: …
yunzen
  • 32,854
  • 11
  • 73
  • 106
12
votes
1 answer

Google Places get LatLng

I am using the Autocomplete method to get Place Suggestions and when I click the Place I want to choose, I want to extract the Lat and Lng which is placed under place.geometry.location as below. As per my observation, the keys ib and jb keep…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
12
votes
7 answers

Reverse Geocoding Without Web Access

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…
Paul Osborne
  • 5,024
  • 6
  • 24
  • 20
12
votes
3 answers

How to get Coordinates when Address is Known?

I derived/adapted the following code from Adam Freeman's book "Metro Revealed: Building Windows 8 apps with XAML and C#" to get the Address when the Coordinates are known: public static async Task GetAddressForCoordinates(double latitude,…
12
votes
1 answer

Database Mapping World Cities to Metropolitan Statistical Areas (and non-US MSA equivalents)

My problem is that I have a file with thousands of cities and I want to map city names to (Metropolitan Statistical Areas and the MSA equivalent for non-US cities. There have been a bunch of posts here on similar questions. I'm using Python if…
user7186
  • 449
  • 1
  • 4
  • 14
12
votes
1 answer

Geocoding addresses with geocoder gem and PostGIS database with RGeo

I am trying to use the geocoder gem for looking up addresses and coordinates. I want it to work together with my PostGIS spatial database and the RGeo gem, which uses POINT features instead of saving latitude and longitude values separately. So I…
12
votes
4 answers

Return individual address components (city, state, etc.) from GeoPy geocoder

I'm using GeoPy to geocode addresses to lat,lng. I would also like to extract the itemized address components (street, city, state, zip) for each address. GeoPy returns a string with the address -- but I can't find a reliable way to separate each…
lubar
  • 2,589
  • 2
  • 26
  • 28
11
votes
2 answers

Google Geocoding -- parsing address_components that may return differently

I'm using Google Maps V3 api. I am submitting an address search to return the proper geocoded result including the address, name of establishment, and lat/lngs. My problem is that the response from the geocoder can be formatted differently. It…
Atticus
  • 6,585
  • 10
  • 35
  • 57
11
votes
2 answers

error (429) Too Many Requests while geocoding with geopy in Python

I have a Pandas dataframe with ~20k rows, and I am trying to geocode by address column into lat/long coordinates. How do I use time.sleep() or maybe other function to stop OSM Nominatim from Too Many Requests 429 error that I am getting now? Here's…
seizethedata
  • 130
  • 1
  • 1
  • 8
11
votes
2 answers

Open map in a given address using MapKit and Swift

I am having a bit of trouble understanding Apple's MapKit in Swift 3. I found an example here: How to open maps App programmatically with coordinates in swift? public func openMapForPlace(lat:Double = 0, long:Double = 0, placeName:String = "") { …
big.nerd
  • 365
  • 2
  • 4
  • 11
11
votes
2 answers

Getting the population of a city given its name

What is a good python API I can use to get the population of a city? I have tried using geocoder, but it is not working - not sure why. geocoder.population('San Francisco, California') returns 'module' object has no attribute 'population' Why is…
11
votes
3 answers

Google Maps API - geocoding accuracy chart?

Where in the Google Maps API docs can I find a table explaining the accuracy values of Geocode lookups? Has the range of values changed in between V2 and V3?
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
11
votes
4 answers

ZIP / Postal Code + Country to Geo Coordinates

What is the most complete, precise and reliable way to get the coordinates (latitude / longitude) of a given ZIP / Postal Code of a given country? I need to make a lot of requests, so a high API limit rate (maybe even absent) would be…
Alix Axel
  • 151,645
  • 95
  • 393
  • 500