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

Merge branch 'master' into routes-with-specified-start-and-end

This commit is contained in:
Stefan Schroeder 2014-01-23 11:15:23 +01:00
commit e332cf3c17

View file

@ -393,8 +393,8 @@ public class VrpXMLReader{
String serviceLocationId = serviceConfig.getString("locationId"); String serviceLocationId = serviceConfig.getString("locationId");
builder.setLocationId(serviceLocationId); builder.setLocationId(serviceLocationId);
Coordinate serviceCoord = getCoord(serviceConfig,""); Coordinate serviceCoord = getCoord(serviceConfig,"");
builder.setCoord(serviceCoord);
if(serviceCoord != null){ if(serviceCoord != null){
builder.setCoord(serviceCoord);
if(serviceLocationId != null){ if(serviceLocationId != null){
vrpBuilder.addLocation(serviceLocationId,serviceCoord); vrpBuilder.addLocation(serviceLocationId,serviceCoord);
} }