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

_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to