>> This will fail if:
>> * there are more then 1 place-nodes in the bounding box
> 
> Why not automatically choose the closest place.

Possible. What you get is the dreaded "<street> near <city>".
You don't get a defined getCityForStreet(<street>) that is guaranteed
to return a correct result if it returns a non-null result.

Lets face it. Everyone else manages this (tomtom, google, garmin, ....)
but city-limits, country-limits and zip-codes in OSM are a mess and in
desperate need of repair.

>> * the city is too large the the node is not in the bounding-box
>> * the location does not belong to the city but the center of some
village
>> is nearby
> 
> Yes, then again with any such "reverse gazeteer" you need to choose an
> arbitrary distance to decide what point is "in the city" and what is
> outside.  Some localities have an associated landuse=residential.

That should be a polygon tagged as place=(city|village|...), name=<name>.
It often coincides with a landuse but landuse is a rendered area and
a city is made up of many, one or no such areas while it has exactly one
circumsizing polygon.

Marcus

_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to