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

I want to put a marker for every customer in our customer database on a map using OSM with PHP and JavaScript. How can I do this? Is it possible to get the location for the customers without having the latitude and longitude for the addresses?

greetz ronnie

asked 26 Sep '11, 09:47

RonnieB's gravatar image

RonnieB
(suspended)
accept rate: 0%

edited 10 Oct '11, 13:28

TomH's gravatar image

TomH ♦♦
3.3k83943

3

No matter how many times you keep prodding this to appear on the front page, you're unlikely to get any more answers!

(06 Oct '11, 10:43) SomeoneElse ♦

The question has been closed for the following reason "Questioner appears unable to do own programming research; is breaking etiquette by repeatedly 'hup'ping the question, is uncivil to those who politely point this out." by Richard 06 Oct '11, 15:53


It is certainly possible to place markers on a map using OpenLayers. Have a look at the Dynamic POI example in our wiki.

However for that you need to have the latitude and longitude of each point. If you lack that you can use Nominatim to geocode the address information that you have and convert it into an usable format.

In the end you are going to need a bit of programming skill or you'll need to pay somebody to do the coding for you as there is no readymade solution that accepts a list of addresses and automatically plots them.

permanent link

answered 26 Sep '11, 15:15

petschge's gravatar image

petschge
8.3k217398
accept rate: 21%

Sure there is, you can use Nominatim for obtaining latitude and longitude as already mentioned by petschge.

(26 Sep '11, 15:52) scai ♦
2

That would be very inefficient as every request to draw the marker at a given address would need to resolve it to lat/long instead of doing it once and storing lat/long in the database.

(26 Sep '11, 22:21) petschge

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:

×133
×126
×37

question asked: 26 Sep '11, 09:47

question was seen: 10,569 times

last updated: 10 Oct '11, 13:28

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