[Routing] Gosmore routing server - remarks
Lambertus
osm at na1400.info
Fri May 30 15:48:56 BST 2008
Nic Roets wrote:
> This line is not in SVN (I will add it soon) and explains why a
> starting point near a cycleway, landuse or other way causes problems.
>
>>> + if (!(((wayType*)(data + itr.nd[0]->wayPtr))->bits & (1<<car)))
>
>
I have applied this patch but do not detect any change in behavior
unfortunately. When an area is very close to a way, and a route to/from
position is close to the road but probably closer to the area, then
Gosmore won't produce a result. Please note that the position is not way
out, it is still located on the road on zoomlevel 16! Changing the
position slightly closer to the center or other side of the road results
in successful route calculation again. Below are two examples where the
marker on the left is shifted slightly to illustrate the described behavior:
<http://tile.openstreetmap.nl/~lambertus/success.jpg>
<http://tile.openstreetmap.nl/~lambertus/fail.jpg>
>> - There's also a roundabout [2] that Gosmore refuses to route over when
>> driving to/from the North. I have checked it using Potlatch but
can't find
>> any problem with the junction.
>
> I suspect the problem will disappear if you delete the
> "junction=roundabout" rule from elemstyle and rebuild. But I'll
> investigate further.
Not sure what caused the problem but I touched the roundabout yesterday
(added a oneway tag), performed a rebuild of the .pak file based on the
today's planet file and the problem has disappeared without applying the
change to the elemstyles.xml. I guess something was wrong with the osm
source data because Gosmore routes fine over other roundabouts. I
consider this ticket closed for now.
Another question has popped-up though: Gosmore is quite happy to route
over (forest) tracks while there is a longer (but sometimes shorter
also!) route using higher grade ways available. In this particular case
I should've tagged the track with motorcar=no but it would also be a
good idea to tweak the routing tags in elemstyles.xml (for the
Netherlands at least) in such way that gosmore prefers other types of
roads more strongly. Am I correct that I should change the routing tag
attribute for motorcar to a lower value to achieve this? And do I need
to rebuild the .pak file again after that type of changes have been made?
Also some road types (e.g. motorway) don't have a 'foot' attribute in
the routing tag. Does that automatically imply that Gosmore will not
route pedestrians over a motorway? I.e. no attribute=no routing?
More information about the Routing
mailing list