logo separator

[mkgmap-dev] [PATCH v1] Wrong turn heading when using --process-exits

From WanMil wmgcnfg at web.de on Thu Jan 30 19:15:28 GMT 2014

> Hi WanMil
>
>> @Gerd, Steve: In RoadNetwork.addRoad link 149+150 a bearing is
>> calculated but the double bearing is converted to int. Why is the double
>> value not rounded? I think this might create problems in some cases?
>
> Yes it should probably be kept as a double (or float would do) and
> rounded on the step to convert to the file format.
>
> However the difference is small and I wouldn't expect it to make much
> difference to routing.

I agree. I guess it matters only for links to give an adequate hint if 
you have to leave to the right or to the left. So bearings should be != 
0 in the file format which means the angle must be at least 2° so that 
it is not 0 in the file.

WanMil

>
> ..Steve



More information about the mkgmap-dev mailing list