[Routing] Turn by turn instructions
Lambertus
osm at na1400.info
Fri Jul 25 09:17:36 BST 2008
As a sidenote, can Gosmore give a also list of streets/segments to
travel for each route when its used on the commandline (for my webbased
routing service)? Currently it outputs only nodes but that's not enough
for a proper service.
Nic Roets wrote:
> I reimplemented turn-by-turn instructions in gosmore. Here is the basic logic :
>
> Look ahead at the predicted route for up to 300m. If there is a
> junction (defined as a node with 3 segments) and the predicted route
> makes a turn smaller than 45 degrees, continue looking further ahead.
> If the turn is larger than 45 degrees, output either "turnLeft",
> "turnRight", "keepLeft" or "keepRight". The latter 2 are used then the
> turn junction wasn't the first junction encountered.
>
> I'm not too used to roundabouts (not too many around here) and I've
> never seen a satnav operate at one. But I suspect the best idea is to
> tell the driver how many exists to skip.
>
> _______________________________________________
> Routing mailing list
> Routing at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/routing
More information about the Routing
mailing list