Fix:Core:Further improvement for navigation
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 19 Dec 2008 07:37:27 +0000 (07:37 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 19 Dec 2008 07:37:27 +0000 (07:37 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@1838 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navigation.c

index c524f64..97b8d2c 100644 (file)
@@ -953,6 +953,9 @@ maneuver_required2(struct navigation_itm *old, struct navigation_itm *new, int *
                        dlim=80;
                else
                        dlim=120;
+               /* if the street is really straight, the others might be closer to straight */
+               if (abs(d) < 20)
+                       dlim/=2;
                if ((maxcat == ncat && maxcat == cat) || (ncat == 0 && cat == 0)) 
                        dlim=abs(d)*620/256;
                else if (maxcat < ncat && maxcat < cat)