mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
add jsonReader
This commit is contained in:
parent
86d4e60b96
commit
b04d5d8bdc
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ public class VrpJsonReader {
|
||||||
Double lon = vehicleNode.path(JsonConstants.Vehicle.END_ADDRESS).path(JsonConstants.Address.LON).asDouble();
|
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();
|
Double lat = vehicleNode.path(JsonConstants.Vehicle.END_ADDRESS).path(JsonConstants.Address.LAT).asDouble();
|
||||||
if (lon != null && lat != null) {
|
if (lon != null && lat != null) {
|
||||||
vehicleBuilder.setStartLocationCoordinate(Coordinate.newInstance(lon, lat));
|
vehicleBuilder.setEndLocationCoordinate(Coordinate.newInstance(lon, lat));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue