akexorcist / GoogleDirectionLibrary

[Android] Library for Google Direction API for Google Maps Android API v2
Apache License 2.0
571 stars 174 forks source link

java.lang.NumberFormatException: Expected an int but was ... #70

Closed antonis-sna closed 4 years ago

antonis-sna commented 5 years ago

After many months of using this library, today suddenly many issues occur by firing onDirectionFailure() event with the following exception: java.lang.NumberFormatException: Expected an int but was 4294967295 at line XXX column 41 path $.routes[0].waypoint_order[0] when trying to calculate and optimize a route.

My code is the following:

GoogleDirection.withServerKey(googleDirectionsAPIKey) .from(startingPoint) .and(orderLocations) .to(endingPoint) .language(Language.GREEK) .transportMode(TransportMode.DRIVING) .avoid(AvoidType.FERRIES) .avoid(AvoidType.TOLLS) .optimizeWaypoints(true) .execute(new DirectionCallback() { ... }

All users get the same exception message, only the line is different (at line XXX) but column is always 41, path is always $.routes[0].waypoint_order[0] and number is always 4294967295.

Does anyone face similar issues?

Thanx.