1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

add jsonReader

This commit is contained in:
oblonski 2014-11-04 16:23:14 +01:00
parent 86d4e60b96
commit b04d5d8bdc

View file

@ -89,7 +89,7 @@ public class VrpJsonReader {
Double lon = vehicleNode.path(JsonConstants.Vehicle.END_ADDRESS).path(JsonConstants.Address.LON).asDouble();
Double lat = vehicleNode.path(JsonConstants.Vehicle.END_ADDRESS).path(JsonConstants.Address.LAT).asDouble();
if (lon != null && lat != null) {
vehicleBuilder.setStartLocationCoordinate(Coordinate.newInstance(lon, lat));
vehicleBuilder.setEndLocationCoordinate(Coordinate.newInstance(lon, lat));
}
}