[mkgmap-dev] Problem with adjust-turn-headings

2014-05-10 Thread WanMil
Hi, I have found a situation where --adjust-turn-headings creates a non useful turn hint. Compile the file: http://files.mkgmap.org.uk/detail/207 with parameters --route and --adjust-turn-headings (maybe also --x-no-mergeroads for easier debugging). Try a route from Frankfurter Straße to

Re: [mkgmap-dev] Problem with adjust-turn-headings

2014-05-10 Thread GerdP
Hi WanMil, I think the algo should not use/need the finalHeading value. You may look at the algo in RoadNetwork.getAngle(). Gerd WanMil wrote Hi, I have found a situation where --adjust-turn-headings creates a non useful turn hint. Compile the file:

Re: [mkgmap-dev] Problem with adjust-turn-headings

2014-05-10 Thread GerdP
Hi WanMil, forget the 1dt sentence. I have no idea why the algo changes anything in this situation. Gerd GerdP wrote Hi WanMil, I think the algo should not use/need the finalHeading value. You may look at the algo in RoadNetwork.getAngle(). Gerd WanMil wrote Hi, I have found a

Re: [mkgmap-dev] Problem with adjust-turn-headings

2014-05-10 Thread WanMil
Hi Gerd, mmh, I don't understand what happens in the tweezeArcs method. Can you explain in some sentences? WanMil Hi WanMil, forget the 1dt sentence. I have no idea why the algo changes anything in this situation. Gerd GerdP wrote Hi WanMil, I think the algo should not use/need the

Re: [mkgmap-dev] Problem with adjust-turn-headings

2014-05-10 Thread GerdP
Hi WanMil, sorry, I read the comments multiple times, but I also don't know what it does in detail. It changes the initial heading value of an arc if some criteria are met, this initial heading value is written to the img file and Garmin uses it to calculate the angle between two arcs. This angle

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-11 Thread Apollinaris Schoell
Hi Mark, Some Garmin GPS units can tell you which lane to be in (lane assist?) but we don't know how to encode that info. Pity, as that's just what you need here. I know this would be cool but I expect only something simple. attached is gpx with 2 routes for a situation where

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-09 Thread Mark Burton
Hi Apollinaris, found a problem in the osm data. there was a short bridge with the name of the exit instead of the motorway name. the turn instruction was exactly as expected according to your implementation. OK. I have another interesting one here

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-08 Thread Apollinaris Schoell
Hi Mark, I think I have an example where this is useful. On a ~200km drive I got one keep left announcement where there was only a normal exit from the motorway. Before blindly adding this relation I want to understand how the current algorithm should work. maybe I should fix the osm data first

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-08 Thread Mark Burton
Hi Apollinaris, Hi Mark, I think I have an example where this is useful. On a ~200km drive I got one keep left announcement where there was only a normal exit from the motorway. Before blindly adding this relation I want to understand how the current algorithm should work. maybe I

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-08 Thread Apollinaris Schoell
Hi Mark, found a problem in the osm data. there was a short bridge with the name of the exit instead of the motorway name. the turn instruction was exactly as expected according to your implementation. I have another interesting one here

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-06 Thread Marko Mäkelä
Hi Mark, On Sat, Feb 06, 2010 at 12:40:10AM +, Mark Burton wrote: Hi Toby, Can we also try to infer through-routes from the presence of a 'route' relation containing the ways? Is that going to work? Just because a route uses a particular combination of ways, it doesn't follow

[mkgmap-dev] Problem with --adjust-turn-headings

2010-02-05 Thread Steve Hosgood
Please look at http://www.openstreetmap.org/?mlat=51.44827mlon=-3.49581zoom=16layers=B000FTF If you approach the marked junction on the B4270 from the south, intending to continue northwards on the B4268 then you get told turn left as you approach the junction with 300m or so to go. Trouble

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-05 Thread Mark Burton
Hi Steve, Please look at http://www.openstreetmap.org/?mlat=51.44827mlon=-3.49581zoom=16layers=B000FTF If you approach the marked junction on the B4270 from the south, intending to continue northwards on the B4268 then you get told turn left as you approach the junction with 300m or so

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-05 Thread Steve Hosgood
Mark Burton wrote: Hi Steve, Please look at http://www.openstreetmap.org/?mlat=51.44827mlon=-3.49581zoom=16layers=B000FTF If you approach the marked junction on the B4270 from the south, intending to continue northwards on the B4268 then you get told turn left as you approach the

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-05 Thread Marko Mäkelä
On a related note, I was driving a car today (untypical of me, since we do not have one), and got a turning prompt where the twoway highway=secondary became a dual carriageway, entering http://www.openstreetmap.org/browse/way/4492154 from the east. The transition is seamless on the road.

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-05 Thread Steve Hosgood
Marko Mäkelä wrote: On a related note, I was driving a car today (untypical of me, since we do not have one), and got a turning prompt where the twoway highway=secondary became a dual carriageway, entering http://www.openstreetmap.org/browse/way/4492154 from the east. The transition is

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-05 Thread Mark Burton
Hi Steve, Sounds great - I'll look forward to it. Good, I will work on it this evening and I don't expect it to be a big job. We need to document the through_route relation on the wiki. I'm not up to speed with wikis, can you (or anyone else) please write a few words to describe what it is

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-05 Thread Marko Mäkelä
Hi Steve, On Fri, Feb 05, 2010 at 04:37:58PM +, Steve Hosgood wrote: Marko Mäkelä wrote: On a related note, I was driving a car today (untypical of me, since we do not have one), and got a turning prompt where the twoway highway=secondary became a dual carriageway, entering

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-05 Thread Toby Speight
0 In article 20100205175428.33046...@crow, 0 Mark Burton URL:mailto:ma...@ordern.com (Mark) wrote: Mark ... a junction when that cannot be reliably inferred from the ways' Mark refs and/or names. Can we also try to infer through-routes from the presence of a 'route' relation containing the ways?

Re: [mkgmap-dev] Problem with --adjust-turn-headings

2010-02-05 Thread Mark Burton
Hi Toby, Can we also try to infer through-routes from the presence of a 'route' relation containing the ways? Is that going to work? Just because a route uses a particular combination of ways, it doesn't follow that those ways are through routes, does it? Mark