This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Convert a Place name to Latitude and Longitude

0

How can I convert a place name to its Latitude and Longitude values in OpenStreetMap?

asked 15 Nov '12, 08:49

Nightfury's gravatar image

Nightfury
11112
accept rate: 0%

edited 15 Nov '12, 10:46

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866


3 Answers:

3

OSM uses Nominatim for geocoding. If you have a look at that wiki page you'll see some examples, and the output format can be varied, so that for example:

http://nominatim.openstreetmap.org/search?format=xml&q=london

produces these results.

If you plan to call it more than once you'll need to read the usage policy that goes with OSM's nominatim instance. Mapquest also run a Nominatim instance, with their own terms of use.

answered 15 Nov '12, 10:44

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

2

What you are looking for is called geocoding. Enter the term in the search box above and see what you find.

answered 15 Nov '12, 09:09

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Sir I did that and I got the answer http://py-googlemaps.sourceforge.net/ but I don't want to use googlemaps thats y i came here. please help

(15 Nov '12, 09:14) Nightfury
3

Frederik was talking about the search box on this site.

(15 Nov '12, 09:41) sleske

0

Type place into search box, select correct one then right click permalink, then right click copy link address this can the be pasted into a doc so it can be emailed, or if you just want to read it paste it into the search box and scroll along it. The Potlatch2 editor will display lat long of the mouse pointer if you wish, it is in options drop down.

answered 15 Nov '12, 09:10

andy%20mackey's gravatar image

andy mackey
13.2k87143285
accept rate: 4%

edited 15 Nov '12, 09:19

Source code available on GitHub .