Hello everyone, due to implementing automatic detection in what country+city you are in Traveling Salesman (http://travelingsales.sourceforge.net) and thus determining what national speed-limits apply I am experimenting with the default-sizes of places.
More exact: If for a place=* there is no polygon describing the extend of it, I need to apply either a radius or an edge-length for a bounding-bof around the a place. For simplifity I chose a bounding-box. My current defaults are in the CityIndex (http://travelingsales.svn.sourceforge.net/viewvc/travelingsales/libosm/src/org/openstreetmap/osm/data/searching/advancedAddressDB/CitiesIndex.java?view=markup) of the AdvancedAddressDBPlaceFinder (http://apps.sourceforge.net/mediawiki/travelingsales/index.php?title=Plugin/AdvancedAddressDBPlaceFinder) DEFAULT_CITY_SIZE = 0.8d; DEFAULT_TOWN_SIZE = 0.4d; DEFAULT_VILLAGE_SIZE = 0.2d; DEFAULT_SUBURB_SIZE = 0.17d; DEFAULT_HAMLET_SIZE = 0.7d; DEFAULT_PLACE_SIZE = 0.4d; the unit is unprojected latitude or longitude. My questions: * What area-sizes are you using for cities where no bounds are given? * Should I use separate constants for lat and lon? * Would there be an real advantage to using distances in kilometer instead? * Is there a way to use is_in or other hints to make this more accurate? Marcus _______________________________________________ Routing mailing list [email protected] http://lists.openstreetmap.org/listinfo/routing
