Fix precision issue with real and as the crow flies length.
This commit is contained in:
@@ -249,6 +249,9 @@ public class BinaryGraphReader extends BinaryReader implements GraphReader {
|
|||||||
}
|
}
|
||||||
maxLength = Math.max(length, maxLength);
|
maxLength = Math.max(length, maxLength);
|
||||||
|
|
||||||
|
length = Math.max(length, (float) Point.distance(nodes.get(node).getPoint(),
|
||||||
|
nodes.get(destNode).getPoint()));
|
||||||
|
|
||||||
// Number of segments.
|
// Number of segments.
|
||||||
int nbSegments = dis.readUnsignedShort();
|
int nbSegments = dis.readUnsignedShort();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user