Hi Andrzej,

in the patch v1 I've implemented a different order.
1) the "dol" and "dor" counters are calculated
2) if neither --drive-on-left nor --drive-on-right is
specified and the "dol" counter is higher, set the 
driving side to drive-on-left. I think I should
add code to set drive-on-right else.
3) This happens before check-roundabouts is used.
because I don't like the idea that check-roundabouts
depends on the first found roundabout, which might 
be wrong in the OSM data or simply the only "dol"
one in a large "dor" area.

I think the option --drive-on-left or --drive-on-right
should always be stronger if we keep them.

Gerd

> Date: Wed, 26 Nov 2014 13:40:30 +0100
> From: [email protected]
> To: [email protected]
> Subject: Re: [mkgmap-dev] Manage drive-on-left/drive-on-right in      
> resources\LocatorConfig.xml
> 
> Hi Gerd,
> 
> my suggestion is to use following priority:
> 1. If there is option --check-roundabouts then use roundabouts to define 
> drive-on setting.
> 2. Use option dirve-on-left/drive-on-right.
> 3. Use value from LocatorConfig.xml.
> 4. Set drive-on-right.
> 
> When using --check-roundabouts, count "dol" and "dor" and select 
> drive-on-xxx, for which there is more roundabouts. If number of "dol" == 
> "dor", then move to next point in priority list.
> 
> -- 
> Best regards,
> Andrzej
> 
> _______________________________________________
> mkgmap-dev mailing list
> [email protected]
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
                                          
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to