logo separator

[mkgmap-dev] Style function is_connected ?

From chris66 chris66nrw at gmx.de on Mon Feb 25 14:59:59 GMT 2013

Am 25.02.2013 15:38, schrieb GerdP:

> Besides that, the question is where you want to stop. If two ways are
> connected to each other, but
> not to any other road, should they be routable? Three, four... ? 

You never can be perfect. For me a simple test would be sufficient.

way.is_connected()
{
  For each node of way{
    if node is member of another highway return "yes"
  }
  return "no"
}

Chris





More information about the mkgmap-dev mailing list