You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 91 on your GoogleParser class:
segment.setDistance(distance / 1000);
distance is and int and 1000 is also an int and the segment distance is a double. And as a consequence, the distances are not calculated correctly. I have values like 0.0, 1.0, 9.0, etc
You need to cast both to doubles:
segment.setDistance((double)distance / (double)1000);
Thanks for a great library
The text was updated successfully, but these errors were encountered:
Hi
On line 91 on your GoogleParser class:
segment.setDistance(distance / 1000);
distance is and int and 1000 is also an int and the segment distance is a double. And as a consequence, the distances are not calculated correctly. I have values like 0.0, 1.0, 9.0, etc
You need to cast both to doubles:
segment.setDistance((double)distance / (double)1000);
Thanks for a great library
The text was updated successfully, but these errors were encountered: