NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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.

permanent link

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.

permanent link

answered 23 Nov '21, 22:05

VARGAPeter1971's gravatar image

VARGAPeter1971
81
accept rate: 0%

edited 23 Nov '21, 22:06

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×142
×133

question asked: 11 May '11, 08:29

question was seen: 36,688 times

last updated: 24 Nov '21, 09:53

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum