Skip to content
Browse files

Merge branch 'master' of ssh://github.com/Emergya/GoFleetLSServer

  • Loading branch information...
2 parents 9edcf82 + ff4823a commit 3a993bc4d58cee757c1afce38f8e992e91b19ad9 @moiarcsan moiarcsan committed Jul 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 osrm-connector/src/main/java/org/emergya/osrm/OSRM.java
View
4 osrm-connector/src/main/java/org/emergya/osrm/OSRM.java
@@ -191,6 +191,8 @@ public AbstractResponseParametersType routePlan(
LineStringType lst = new LineStringType();
lst.setSrsName(targetCRS.getName().getCode());
+ routeGeometry.setLineString(lst);
+ res.setRouteGeometry(routeGeometry);
JsonFactory f = new JsonFactory();
JsonParser jp = f.createJsonParser(getOSRMStream(host_port, url));
@@ -220,8 +222,6 @@ else if (jp.getCurrentName().equals("total_distance")) {
}
jp.close(); // ensure resources get cleaned up timely and properly
- routeGeometry.setLineString(lst);
- res.setRouteGeometry(routeGeometry);
res.setRouteHandle(routeHandle);
if (param.getRouteInstructionsRequest() != null) {

0 comments on commit 3a993bc

Please sign in to comment.
Something went wrong with that request. Please try again.