Why don't you just use the postal code to look up City and State?
If you can reliably extract it already, it is the exactest possible way to find 
what you want. But surely not in OSM.

If this is what you want.

-------- Original-Nachricht --------
> Datum: Thu, 28 May 2009 11:06:51 +0200
> Von: Michael Handerek <[email protected]>
> An: "[email protected]" <[email protected]>
> Betreff: [OSM-newbies] Reverse geo coding

> Hi,
> 
> I am new to osm. I am currently developing a prototype of a reverse
> geo
> 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
> with
> a acceptable query time i use the k-nearest-neighbor algorithm
> (http://www.bostongis.com/?content_name=postgis_nearest_neighbor_generic#130).
> 
> 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
> to
> check if nodes are within.
> 
> May someone know some better method to get the needed information,
> feel
> free to discuss.
> 
> The 1. possibility, also used by 'Where are they' 
> (http://wiki.openstreetmap.org/wiki/Where_Are_They), for me, seems to
> be
> imprecise.
> 
> Regards,
> Mic
> 

-- 
http://www.openstreetmap.org/?lat=47.172&lon=7.4395&zoom=14&layers=0B00FTFTT&mlat=47.16677&mlon=7.43513

Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02

_______________________________________________
newbies mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/newbies

Reply via email to