-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Danny Backx schrieb: > Is there a way to figure out which streets belong to a city with the OSM > data ? If the user enters a street/city/country triplet into a GPS > application, how does it know what to do?
Hello Danny, In the code at http://travelingsales.svn.sourceforge.net/viewvc/travelingsales/libosm/src/org/openstreetmap/osm/data/searching/ especially http://travelingsales.svn.sourceforge.net/viewvc/travelingsales/libosm/src/org/openstreetmap/osm/data/searching/AddressDBPlaceFinder.java?view=markup I am using polygons whereever the map provides them. If I only find a single node I all back to estimating a radius based on the kind of city/hamlet/village/. This data is stored in a trivial embedded database and then used for searching. There is currently nothing we can do about country-borders I'm afraid except using external shape-files or this. Everything on interpreting the osm-data for this purpose should be documented at http://wiki.openstreetmap.org/index.php/OSM_tags_for_routing#Is_inside.2Foutside and http://wiki.openstreetmap.org/index.php/Routing PS: If you find any algorithm that works on the existing data for country-borders we have, please let me know. Our borders are in no condition to be parsed by one single algorithm that can give you one definite area for inclusion-tests. Marcus > > I'm trying to get this kind of stuff in the RoadMap application. > > Danny -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIy16ef1hPnk3Z0cQRAqzmAKDINOoT0qw0Er8YrYa69KjCA00ojgCguqlM PyMsTwQV/uidVG5QehQYEGE= =fDts -----END PGP SIGNATURE----- _______________________________________________ Routing mailing list [email protected] http://lists.openstreetmap.org/listinfo/routing
