[OSM-newbies] Reverse geo coding
osm at handerek.net
Thu May 28 10:06:51 BST 2009
I am new to osm. I am currently developing a prototype of a reverse
coding tool based on a local osm db. The input has to be a
latitude/longitude pair and the output a human readable address.
I already handled it to extract the street name and postal code of a
lat/long pair using the tags of a nearest-neighbor-node. To do this
a acceptable query time i use the k-nearest-neighbor algorithm
Now I have to get at least the country and city name. In order to do
this i see two possibilities.
1. Searching for the nearest city node, in order to extract the
information from his tags.
2. Creating geometries for each continent, country and city in order
check if nodes are within.
May someone know some better method to get the needed information,
free to discuss.
The 1. possibility, also used by 'Where are they'
(http://wiki.openstreetmap.org/wiki/Where_Are_They), for me, seems to
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the newbies