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
75
votes
15 answers

How to obtain longitude and latitude for a street address programmatically (and legally)

Supposedly, it is possible to get this from Google Maps or some such service. (US addresses only is not good enough.)
Ola Eldøy
  • 5,720
  • 7
  • 49
  • 82
72
votes
5 answers

GIS: PostGIS/PostgreSQL vs. MySql vs. SQL Server?

EDIT: I have been using Postgres with PostGIS for a few months now, and I am satisfied. I need to analyze a few million geocoded records, each of which will have latitude and longitude. These records include data of at least three different types,…
Aren Cambre
  • 6,540
  • 9
  • 30
  • 36
69
votes
3 answers

Create or update mapping in elasticsearch

I am new to Elasticsearch and am currently working on implementing a geo_distance filter for searching. As of now my index has the following mapping (I've removed some fields): { advert_index: { mappings: { advert_type: { …
Axelfran
  • 964
  • 1
  • 7
  • 17
65
votes
3 answers

API key Browser API keys cannot have referer restrictions when used with this API

I'm trying to program geocoding. I created API key, but when I add it into my website code I don't get anything, however when I don't use API everything works well. When I'm…
Damian
  • 661
  • 1
  • 5
  • 3
53
votes
10 answers

Enable Billing on the Google Cloud Project

I want to retrieve address from lat long coords. I have created project in google console. Added Billing information and enabled the geocoding api services. But still when i make this request i am getting the below…
Trinu
  • 1,721
  • 3
  • 21
  • 41
50
votes
5 answers

Batch Geocoding with Garmin Mapsource

I lost track of this effort years ago but have need to geocode thousands of addresses nightly. I must use the very accurate database sitting on the machine, installed when the Nuvi map update installed Mapsource. When I contacted Garmin years ago,…
Mike Trader
  • 8,564
  • 13
  • 55
  • 66
46
votes
9 answers

Converting latitude and longitude to decimal values

I have GPS information presented in the form: 36°57'9" N 110°4'21" W I can use the javascript functions of Chris Veness to convert degrees, minutes and seconds to numeric degrees, but first need to parse the GPS info into the individual latitude and…
Joe Colson
45
votes
9 answers

Get real IP address in local Rails development environment

I have Rails 2.3.8, Ruby 1.8.7, Mongrel Web Server and MySQL database. I am in the development mode and I need to find the real IP address When I use request.remote_ip I am getting the IP as 127.0.0.1 I know I am getting 127.0.0.1 because I am…
gkolan
  • 1,571
  • 2
  • 20
  • 37
44
votes
14 answers

get city from geocoder results?

Having problems getting the different arrays content from geocoder results. item.formatted_address works but not item.address_components.locality? geocoder.geocode( {'address': request.term }, function(results, status) { …
v3nt
  • 2,845
  • 6
  • 36
  • 50
44
votes
7 answers

Get latitude and longitude based on location name with Google Autocomplete API

I have a textbox in my page which gets a location name and button with text getLat&Long. Now on clicking my button I have to show an alert of latitude and longitude of the location in the textbox. Any suggestion?
Chandra
  • 523
  • 1
  • 4
  • 9
41
votes
8 answers

Should I use a struct or a class to represent a Lat/Lng coordinate?

I am working a with a geo-coding API and need to represent the coordinate of a returned point as a Latitude / Longitude pair. However, I am unsure whether to use a struct or a class for this. My initial thought was to use a struct, but they seem to…
Dan Diplo
  • 25,076
  • 4
  • 67
  • 89
40
votes
7 answers

iOS - MKMapView place annotation by using address instead of lat / long

I am able to place annotations on my MKMapView by using latitude and longitude, however, my feed coming in that I need to use location for is using street addresses instead of Lat and Long. e.g 1234 west 1234 east, San Francisco, CA ... Would this…
Romes
  • 3,088
  • 5
  • 37
  • 52
38
votes
16 answers

Random geographic coordinates (on land, avoid ocean)

Any clever ideas on how to generate random coordinates (latitude / longitude) of places on Earth? Latitude / Longitude. Precision to 5 points and avoid bodies of water. double minLat = -90.00; double maxLat = 90.00; double…
sdolgy
  • 6,963
  • 3
  • 41
  • 61
35
votes
8 answers

Calculate distance between Zip Codes... AND users.

This is more of a challenge question than something I urgently need, so don't spend all day on it guys. I built a dating site (long gone) back in 2000 or so, and one of the challenges was calculating the distance between users so we could present…
bopapa_1979
  • 8,949
  • 10
  • 51
  • 76
33
votes
8 answers

Converting Longitude & Latitude to X Y on a map with Calibration points

If i have a jpeg map with size sizeX, sizeY and some calibration points on the map (X, Y, Lon, Lat) What would be the algorithm for calculating the corresponding XY point in the map with a given Longitude / Latitude pair?
Jorge
  • 2,156
  • 2
  • 22
  • 29