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

Find street coordinates

4
3

Hi, Can I use OpenStreetMap to find map coordinates for a street by name?

I'm interested for a web application using php/html/javascript/mysql technologies.

asked 11 May '11, 08:29

xprt64's gravatar image

xprt64
61133
accept rate: 0%

edited 11 May '11, 08:48

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273


2 Answers:

7

You are looking for geocoding based on OpenStreetMap.

There are several different ways to do it. If you want to set up your own server, try Nominatim. There are other solutions out there, e.g. the GeoCommons geocoder aimed primarily at geocoding US addresses (not sure how far their OpenStreetMap import project has progressed) and Gisgraphy who have a working OSM import but don't do house numbers yet.

If you are looking for an online service (i.e. don't want to run your own server), then your best bet is MapQuest's free Nominatim-based service.

answered 11 May '11, 08:47

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Can you please provide more information regarding the link to "MapQuest's free Nominatim-based service"? I would need exactly the lat/lng coordinates which represent a street. Thx

(31 Oct '21, 18:34) VARGAPeter1971
2

The answer you referring to is 10 years old. To answer your question: https://nominatim.org/release-docs/latest/api/Search/ should help for a start, but please adhere to the Nominatim usage policy found here: https://operations.osmfoundation.org/policies/nominatim/ . If you need to geocode large amounts of data, a third party provider may help, see list here: https://wiki.openstreetmap.org/wiki/Nominatim#Alternatives_.2F_Third-party_providers

(01 Nov '21, 09:32) Spiekerooger

Thank you! I am a bloody beginner and somehow I am lost. I am playing around with this site:
https://nominatim.openstreetmap.org/ui/search.html?street=avd+Huerta+Bel%C3%B3n&city=Marbella&county=M%C3%A1laga&country=Spain

You see the street "Avenida Huerta Belón" is marked only partially. Can you please point me to the right direction that the whole road would be marked abd how do I get all of the latitudes/longitudes values for this polyline?

This would really help me a lot. I am missing something and I am "stuck".

I tried also - according to the link you posted - this URL, but it still doesn't return all coordinates for the road and the road is marked only partially:
https://nominatim.openstreetmap.org/search/Avd%20Huerta%20Bel%C3%B3n,Marbella,%20Spain?format=json&addressdetails=1&limit=50&polygon_geojson=1&viewbox=36.5120612,-4.89550880,36.5152989,-4.8899952

(01 Nov '21, 16:41) VARGAPeter1971

-1

The comments of this answer have the solution. I could solve it. Apparently it's forbidden in OSM forums to be more specific so I don't want to be rude and break this rule.

answered 23 Nov '21, 22:05

VARGAPeter1971's gravatar image

VARGAPeter1971
81
accept rate: 0%

edited 23 Nov '21, 22:06

Source code available on GitHub .