Hi, I'm using Openstreetmap to show the location of faculties on a map. Now, is there any way to pass a url with the name of the location and to get embeddable html code for the location on the map? For example:
So, is there any way to pass the name of the location in a url, because I would like to show maps dynamically (based on location from a mysql table). Thanks in advance, Amer |
No, there is no direct way to to this as far as I know. It would be difficult to imagine how this should work, because often location names will be ambiguous (there are even cities with multiple streets with identical names). What you can do is use a geolocation service (such as Nominatim) to get the coordinates of a place, then use that to display the map. Nominatim for example can be queried over the web (the wiki page lists the URLs and parameters). Finally, if the list of locations to be shown is known in advance (there are only so many faculties, after all), it's probably easier to get the coordinates once (possibly by hand), then use them directly. answered 19 Apr '11, 09:42 sleske |