[OSM-talk] Properly tagging is_in of roads

Andy Allan gravitystorm at gmail.com
Tue Dec 2 16:10:44 GMT 2008


On Tue, Dec 2, 2008 at 2:07 PM, Olav Einervoll <olav at einervoll.com> wrote:
> Hi
>
> To get proper searching of roads and stuff is this the correct way to do it?
>
> For the village:
> name: John's Village
> place: village
> is_in: Municipality, County, Country
>
> and then for every road example:
> highway: secondary
> name: John's road
> is_in: John's Village

Aaargh, that's a very complicated and error prone way to do it. I
certainly wouldn't advise you to tag every road with is_in. Instead,
it's a much better idea to make an area to represent the village, and
other programs can use that to work out which road is in the village
using spatial maths.

Cheers,
Andy




More information about the talk mailing list