Re: [mkgmap-dev] question about ignored no_u_turn restriction

2015-08-01 Thread Ben Konrath
Hi Chris,

many Garmin devices do have an option "avoid u-turns / Ausschluss
> Kehrtwenden".
>
> So I guess this kind of turn restriction is for the Garmin routing
> algorithm a complete other thing as "normal" turn-restrictions.
>

I think the 'avoid u-turns' option tells the device to only do u-turns when
it's the only choice - effectively a 'no u-turn' restriction at every
intersection. I assume that the routing algorithm follows the actual turn
restrictions when the 'avoid u-turns' option is disabled. But as Gerd
pointed out, he's not sure if the no u-turn restriction in my example
actually has an effect so my assumption could be wrong.

Thanks, Ben
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] question about ignored no_u_turn restriction

2015-08-01 Thread Ben Konrath
Hi Gerd,

For point 2, what makes you think that the restriction has no effect on
Garmin routing? You said that it wasn't easy to test but did you mean that
it's not possible to test this? If we don't know for sure or if it's too
hard to test, changing the warning message to an informational would be
good. You can always add a link to this thread in a comment in case we
discover more information about the effect on the Garmin routing.

Thanks again for your help.

Ben

On Wed, Jul 29, 2015 at 11:09 AM, Gerd Petermann <
gpetermann_muenc...@hotmail.com> wrote:

> Hi Ben,
>
> my results so far:
> 1) The img format allows to store this kind of no-u-turn, mkgmap also
> doesn't seem to have a problem
> with it, I just have to comment the check.
> 2) I still think that the restriction has no effect on Garmin routing
>
> I think I should change the message to ... no_u_turn with equal 'from' and
> 'to' way and via node has no effect, is ignored
> and make it informational.
>
> OK?
>
> Gerd
>
>
> --
> Date: Tue, 28 Jul 2015 17:38:34 +0200
>
> From: b...@bagu.org
> To: mkgmap-dev@lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] question about ignored no_u_turn restriction
>
> Hi Gerd,
>
> I guess I was a little to 'quick' with that example. ;-) Thanks for
> looking into this.
>
> Ben
>
> On Tue, Jul 28, 2015 at 5:22 PM, Gerd Petermann <
> gpetermann_muenc...@hotmail.com> wrote:
>
> Hi Ben,
>
> okay, I did not yet think about the case that the device knows in which
> direction you are currently driving
> when it re-calculates a route. I did only consider the case that you are
> planning while standing still.
> If I remember correctly, this case will produce a message like "please
> make a u-turn",
> I never saw that it tells me to make a u-turn at a specific place.
>
> It's not easy to test if Garmin uses this restriction (when written by
> mkgmap), I have to think
> about it.
> @Steve: Do you see these restrictions in Garmin maps?
>
> Gerd
> PS: Your example is not good, as Quick Avenue is a (wrong) oneway, but
> that shouldn't matter here ;-)
>
> --
> Date: Tue, 28 Jul 2015 16:50:30 +0200
>
> From: b...@bagu.org
> To: mkgmap-dev@lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] question about ignored no_u_turn restriction
>
> Hi Gerd,
>
> In this example, if you're travelling southbound on North Harlem Avenue
> and you miss your right turn onto Quick Avenue, the GPS might suggest that
> you make a u-turn at the North Harlem Avenue / Ontario Street intersection
> so that you can double back get back to your original route. The traffic
> rule is saying that you're not allowed to make a u-turn at this
> intersection and the OSM data is capturing the traffic rule correctly.
>
> I've never been to this area so I can't actually test to see if the Garmin
> routing algorithm would try to do this u-turn. This is just an example that
> I'm using to try to figure if why the restriction is being ignored. I don't
> actually know the details Garmin routing algorithm but I have been routed
> on such u-turns in the past when I've missed a turn.
>
> Given that this is a legitimate type of 'no u-turn' restriction, if the
> Garmin map format or routing algorithm can't deal with it, there should be
> a message that says so in the warning. In this case, maybe an info message
> makes more sense - but you should probably decide how you want to present
> it since you wrote it. :-) The other side of this is that the Garmin map
> format or routing algorithm can actually handle this specific type of 'no
> u-turn' restriction, in which case it would be nice to have the restriction
> included in the maps.
>
> Thanks for your help and all your hard work on mkgmap!
>
> Ben
>
> On Tue, Jul 21, 2015 at 10:44 AM, Gerd Petermann <
> gpetermann_muenc...@hotmail.com> wrote:
>
> Hi Ben,
>
> unfortunately I did not add a comment to that part of the source which
> would explain
> why I coded it, but I think the reason is that the restriction has no
> effect on route calculation.
> I can't think of any case where the Garmin algo would route you along that
> u-turn.
> Do you have an example that proves this assumption to be wrong?
>
> If not, I can change the msg to say something like "has no effect", or
> please suggest a better text.
>
> Gerd
>
> --
> Date: Mon, 6 Jul 2015 13:34:12 +0200
>
> From: b...@bagu.org
> To: mkgmap-dev@lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] question about ignored no_u_turn restriction
>
> Just to follow up ... Does anybody know concretely that the Garmin format
> cannot handle and u-turn restriction with the same from and two way?
>
> Thanks, Ben
>
> On Sun, Jul 5, 2015 at 9:20 PM, Ben Konrath  wrote:
>
> Hi Anor,
>
> Thanks for the tip but it seems that your suggestion breaks the OSM rule
> of manipulating the map for specific renderers (the renderer here being
> mkgmap). If the Garmin format truly doesn't support the u-turn restriction
> w