I want to generate the longitude and latitude values by giving address in the back-end. For example, If I inserted my address like area,city,state,country in the back-end then it should generate the longitude and latitude values and it should show the marker to that location. This I have done in the googlemap now I want to use it in the openstreetmap. Please help me with a sample code. Thanks in advance asked 22 Feb '11, 10:44 psn Andy Allan |
Take a look at the Nominatim Examples in the OpenStreetMap Wiki! answered 22 Feb '11, 10:58 gnurk Thanks for your reply, Not getting map. What i need is, i should have a choice to enter the address or by static like area,city,state,etc. After that the openstreetmap should display with the pointer with the given address. once again thanks for your reply.
(22 Feb '11, 11:43)
psn
|
For a javascript search interface you might like to take a look at FacilMap, which bundles OpenLayers and add various bits. This includes an interface for searching, which calls the Nominatim search service, shows result matches, and places a marker (or markers) on the map. answered 22 Feb '11, 13:35 Harry Wood |
Did you ever find a way to do this. I am trying to do the same using Python or objective c type code.. answered 29 Jul '13, 06:55 abolfasl |
I have to try to guess what this means.
Guess number 1: You want a javascript map interface, and search box (on the interface) which does a call to a search service, and then places a marker at the location of the first match.
Guess number 2: You want server-side code (which language are you using?) to call a search service and generate a link of the form "http://www.openstreetmap.org/?lat=[Returned latitude]&lon=[Returned logitude]&zoom=14" spitting out the results to file e.g. for bulk geocoding spreadsheet data.
So which is it? Can you re-write you question more clearly.
Thanks for your reply, Your 2nd Guess matches to my question. I just give my input as city,state,country,etc. The output should show the marker to the given address. what i mean is the code should generate the longitude and latitude values and also have to generate the pointer to that location(based on the generated longitude and latitude values). Iam using PHP scripting.