Hi all, I want to implement a litle map viewer with one marker: the user's address. I know that i can insert a marker with OpenLayers with Latitude and Longitude values, but i want to give 'OpenLayers' the address instead of GPS coordinates. Its for a user profile of a new website i am working for. (User inserts its address in his profile). Thank you very much. asked 24 Sep '13, 16:06 walo |
If you just have the address then you have to do reverse-geocoding for each address first. This can be done by using Nominatim. But take a look at the usage policy first before you try to start bulk queries for all of your addresses. Instead of OSM's official Nominatim instance you can either use an alternative instance with a less-restrictive usage policy or install your own one. answered 24 Sep '13, 17:01 scai ♦ I know Nominatim, but i just wanted a single line of code added to openlayers' code, instead of adding coordinates. Thanks.
(24 Sep '13, 20:17)
walo
There is no such OpenLayers feature out of the box. And bulk-querying all addresses each time would clearly violate Nominatim's usage policy and it would be very slow and unnecessary, too.
(24 Sep '13, 21:08)
scai ♦
|