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
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',…
23
votes
9 answers

Geocoding libraries

I'm using python and I need to map locations like "Bloomington, IN" to GPS coordinates so I can measure distances between them. What Geocoding libraries/APIs do you recommend? Solutions in other languages are also welcome.
bgoncalves
  • 1,687
  • 3
  • 19
  • 19
22
votes
4 answers

Google geocoding API (City => long, lat)

Does Google offer a RESTful API where I can pass it a city name (or zip) and it returns the longitude & latitude. I know how to do this with using the Google Maps API, but I really don't want to have my users download the huge 200k Google Maps API…
MrDoAlot
22
votes
5 answers

Autofill Address + Google Maps API

I want to present my users with a text box wherein they can type in their address. As they type their address, I want to provide the users with suggestions/predictions of what address they are trying to type. I'm also concerned about the relevance…
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
22
votes
5 answers

Get street address at lat/long pair

I've seen that it's possible to get the latitude and longitude (geocoding, like in Google Maps API) from a street address, but is it possible to do the reverse and get the street address when you know what the lat/long already is? The application…
Chris Wenham
  • 23,679
  • 13
  • 59
  • 69
21
votes
2 answers

Does Google Maps API offer a way to search for locations by name?

When one visits http://maps.google.com, they are able to type queries into the search field and receive results based on locations or places, and not hard search results, as they would in a normal Google Search query. They're a unique style of…
dclowd9901
  • 6,756
  • 9
  • 44
  • 63
21
votes
5 answers

Find County name for a Lat/Long

I'm trying to find a webservice that will allow me to get a County name (not Country) for a specific Lat/Long. I would be performing the lookup within a server application (likely a Java application). It doesn't have a be a webservice if there is…
Andrew Serff
  • 2,117
  • 4
  • 21
  • 32
21
votes
4 answers

Get only country specific result using google geocode api

I am using google geocode api for fetching lat long using postal code of singapore I have tried following to fetch data: (1) http://maps.googleapis.com/maps/api/geocode/json?address=505468&sensor=false (2)…
steve
  • 1,365
  • 4
  • 19
  • 33
20
votes
1 answer

How do you use the .off() event method in leaflet.js?

I am trying to build a map application using leaflet.js and I can not figure out how to use the .off method. The documentation doesn't have any examples and I can't seem to find anything anywhere else online. I have distilled the problem into a more…
Spencer Cooley
  • 8,471
  • 16
  • 48
  • 63
19
votes
6 answers

Geocoding api over query limit

I'm using the geocoding API on the server side to translate addresses in latlng. I faced a OVER_QUERY_LIMIT status even though : - the server didn't exceed the 2500 limitation (just a few request on this day) - it didn't do many requests…
user1283452
  • 191
  • 1
  • 1
  • 3
19
votes
4 answers

ggplot centered names on a map

I'm attempting to use ggplot2 and maps to plot the names of the counties in NY state. My approach was to find the means of latitude and longitude by county (I assume this is the center of the county but this may be faulty thinking) and then use…
Tyler Rinker
  • 108,132
  • 65
  • 322
  • 519
19
votes
4 answers

Clickable continent/country maps: which way to go?

There are many Web sites that include clickable maps that highlight regions on mouseover and allow the user to narrow down a selection from a world map view to a continent level. Here is an interesting example: davidlynch.org. Many of these…
dokaspar
  • 8,186
  • 14
  • 70
  • 98
19
votes
2 answers

Google maps API - add marker by address javascript

I have database of places with addresses and I want to add markers on google maps. It shows only the default marker, seems like the geocoder.geocode() does nothing. For an example I'm trying to add a marker on " New York City", with no…
Aviv Eyal
  • 307
  • 2
  • 3
  • 13
19
votes
7 answers

Geocode multiple addresses

I need to geocode around 200 addresses per request and do around 3,000 request per day. I will be doing this server side using PHP. I have looked at How to convert an address to a latitude/longitude?, but could not find a way for either Google Maps…
ace2600
19
votes
6 answers

How to get the bounding coordinates for a US postal(zip) code?

Is there a service/API that will take a postal/zip code and return the bounding(perimeter) coordinates so I can build a Geometry object in a MS SQL database? By bounding coordinates, I mean I would like to retrieve a list of GPS coordinates that…
ecco88
  • 606
  • 2
  • 7
  • 16