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
18
votes
5 answers

Improve centering county names ggplot & maps

Early I posted a question about plotting county names on a map using ggplot and maps found HERE. My first approach was to take the means of all the lat and long coordinates per county as seen here: Thankfully Andrie had 2 suggestions to improve…
Tyler Rinker
  • 108,132
  • 65
  • 322
  • 519
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
18
votes
5 answers

retrieving lat/long of location using google.maps.geocoder

i have been trying to use some ajax to save venue location in my application and stumbled across the following code on stack overflow function getLatLong(address) { var geocoder = new google.maps.Geocoder(); var result = ""; …
Chris Mccabe
  • 1,902
  • 6
  • 30
  • 61
18
votes
5 answers

Find path by sea from coastal point A to coastal point B

I have the seemingly tricky challenge of trying to work out a path, by sea, from one sea port to another sea port. The eventual aim is to plot this on a Google (or Bing) Map as a polyline. The path needs to: Be plausible, as a ship can't go over…
NickH
  • 351
  • 5
  • 15
17
votes
1 answer

How do I return a longitude and latitude from Google Maps JavaScript geocoder?

When I use the code below its alerting a blank value? why is that? HTML
manraj82
  • 5,929
  • 24
  • 56
  • 83
17
votes
3 answers

Android; Geocoder, why do I get "the service is not available"?

I want to use the Geocoder in an android application, I've got the following piece of code to sample it : public class LocatorGeo extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
17
votes
5 answers

Retrieving population density data

I need to figure out whether not a given location is considered urban or rural. I take it that the best way to do this is by looking at the population density of the city/state or province/country combination. The kicker is that we're using this for…
17
votes
2 answers

Can I provide addresses instead of latitude and longitude to Google Maps?

I'm building an application where users provide the addresses for their listings. It's certainly not practical to ask a simple user to provide the latitude and longitude for each address he provides! Can I provide addresses to Google Maps API…
Isamtron
  • 613
  • 2
  • 8
  • 13
17
votes
9 answers

Get latitude/longitude from address

How can I get latitude and longitude from a full address (street, city, etc.) input by the user, using the iPhone SDK 3.x?
lucaconlaq
  • 1,511
  • 4
  • 19
  • 36
17
votes
7 answers

Does Geocoder gem work with google API key?

I am using ruby geocoder gem for my project and as the project is growing I am starting to look into connecting to the Google API key. After adding this to the project: Geocoder.configure do |config| # geocoding service (see below for supported…
17
votes
1 answer

Plotting google map with ggplot in R

I am trying to plot Google map that is queried using RgoogleMaps package and combine it with ggplot. Ultimately, I want to show total population using geom_point, somewhat similar to the picture below however I am trying to concentrate on Montgomery…
Ken
  • 863
  • 3
  • 13
  • 24
16
votes
6 answers

Is there an offline geocoding framework, library, or database for iOS?

Is there an (offline) Geocoding framework, library or database for iOS? A place to get the data from? I need to be able to geocode street addresses in cities worldwide (or at least in the United States) into latitude and longitude for sunrise and…
Moshe
  • 57,511
  • 78
  • 272
  • 425
16
votes
3 answers

How can I plot addresses in Swift, converting address to longitude and latitude coordinates?

In Objective-C this code works fine to plot an address and it finds the longitude and latitude coordinates: NSString *address = @"1 Infinite Loop, CA, USA"; CLGeocoder *geocoder = [[CLGeocoder alloc] init]; [geocoder…
agf119105
  • 1,770
  • 4
  • 15
  • 22
16
votes
2 answers

How does the Google geocoder work?

I am curious as to how the Google geocoder works. I have been studying some implementations of open source geocoders like geocommons' geocoder or PostGIS's new Tiger Geocoder. This is roughly what I know so far (to hopefully prove that I have been…
rburhum
  • 1,611
  • 2
  • 17
  • 33
16
votes
2 answers

Parsing Google Geocoding JSON with PHP

I'm trying to parse the json response from the Google Geocode API but I'm having a little trouble understanding it. For those unfamiliar with the Geocode API here is the URL:…
Lee Price
  • 5,182
  • 11
  • 34
  • 36