Fix precision issue with real and as the crow flies length.
This commit is contained in:
parent
d8470055f1
commit
423e36fc65
1 changed files with 3 additions and 0 deletions
|
@ -249,6 +249,9 @@ public class BinaryGraphReader extends BinaryReader implements GraphReader {
|
|||
}
|
||||
maxLength = Math.max(length, maxLength);
|
||||
|
||||
length = Math.max(length, (float) Point.distance(nodes.get(node).getPoint(),
|
||||
nodes.get(destNode).getPoint()));
|
||||
|
||||
// Number of segments.
|
||||
int nbSegments = dis.readUnsignedShort();
|
||||
|
||||
|
|
Loading…
Reference in a new issue