From e20a0b1f65c3c8cc81a6ef06dfb544a7114c4fe0 Mon Sep 17 00:00:00 2001 From: martin-s Date: Tue, 16 Dec 2008 14:24:59 +0000 Subject: [PATCH] Fix:Core:Make an annoucement if you have to turn on a street which keeps its name git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1806 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/navigation.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/navit/navit/navigation.c b/navit/navit/navigation.c index 7ccd664..d005349 100644 --- a/navit/navit/navigation.c +++ b/navit/navit/navigation.c @@ -705,10 +705,21 @@ maneuver_required2(struct navigation_itm *old, struct navigation_itm *new, int * return 1; } - dbg(1, "maneuver_required: Staying on the same street: no\n"); - if (reason) - *reason="no: Staying on same street"; - return 0; + if (check_multiple_streets(new)) { + if (entering_straight(new,abs(*delta)*2)) { + if (reason) + *reason="no: delta < ext_limit for same name"; + return 0; + } + if (reason) + *reason="yes: delta > ext_limit for same name"; + return 1; + } else { + dbg(1, "maneuver_required: Staying on the same street: no\n"); + if (reason) + *reason="no: Staying on same street"; + return 0; + } } } else dbg(1, "maneuver_required: old or new is ramp\n"); -- 2.7.4