logo separator

[mkgmap-dev] Commit r4520: Implement new style function is_drive_on_left()

From svn commit svn at mkgmap.org.uk on Sun Jun 7 09:40:29 BST 2020

Version mkgmap-r4520 was committed by gerd on Sun, 07 Jun 2020

Implement new style function is_drive_on_left() 
The function can be used in points, lines and polygons.
The function returns "true" or "false". The return code depends on the information stored in the LocatorConfig.xml and on the iso code in the tag mkgmap:admin_level2. If the latter is not set the function tries the value in mkgmap:country. 
If both are not set the function returns false. 
If the iso code is not found in LocatorConfig.xml the function returns false.
If the iso code is found and the driveOnLeft attribute is not set in LocatorConfig.xml the function returns false.
If (and only if) the iso code is found and the driveOnLeft attribute is set in LocatorConfig.xml the function returns true.


http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4520


More information about the mkgmap-dev mailing list