NOTICE: 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

accept rate: 0%

edited 10 Oct '11, 13:28

TomH's gravatar image

TomH ♦♦


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

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 ♦

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 26 Sep '11, 09:47

question was seen: 10,220 times

last updated: 10 Oct '11, 13:28

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