[OSM-dev] OSM clickable POIs - implementation?
Martijn van Oosterhout
kleptog at gmail.com
Sun Jan 6 14:17:15 GMT 2008
On Jan 6, 2008 2:19 PM, Nick Whitelegg <nick at hogweed.org> wrote:
> I would like to try and add clickable POIs to OSM (as already exists on
> Freemap) so that when you click a village, for example, some info and its
> Wikipedia link comes up.
>
> The best way to do this would seem to be to implement code which takes a
> lat/lon (or Mercator coord pair) and returns the nearest POI node to it. This
> could be turned into an API call, as could a similar method to find the
> nearest way to a mouse click. Do people think this is a good idea?
Any mapnik installation already has all the POIs in a a geospatially
indexed DB so as a datasource I think that would be best. You could
always query the api for the full data if you really wanted that.
You could also just display the POIs as icons on the map so users can
click on them, as in:
http://dev.openstreetmap.org/~kleptog/pois/pois.html
Have a nice day,
--
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
More information about the dev
mailing list