PDA

View Full Version : Multi waypoint



mzagal
21.04.2014, 21:28
hello am android developer has much liked your document and how to implement their api , but I miss a ' waypoint ' element there is a way to indicate points on the route where I need you to pass. eg OSM


***** RoadManager roadManager = new OSRMRoadManager();

ArrayList<GeoPoint> waypoints = new ArrayList<GeoPoint>();
waypoints.add(startPoint);
GeoPoint g1 = new GeoPoint(x, y);
GeoPoint g2 = new GeoPoint(x, y);
GeoPoint g3 = new GeoPoint(x, y);

waypoints.add(g1);
waypoints.add(g2);
waypoints.add(g3);

Road road = roadManager.getRoad(waypoints);

your api only allows me to start and end

***** // get a route settings object and populate it with the desired properties
SKRouteSettings route = new SKRouteSettings();
// set start and destination points
route.setStartCoordinate(new SKCoordinate(-122.397674, 37.761278));
route.setDestinationCoordinate(new SKCoordinate(-122.448270, 37.738761));
// set the number of routes to be calculated
route.setNoOfRoutes(1);

Greetings and thanks

Alexandra
22.04.2014, 18:08
Hi & welcome to the forum!

It is currently not possible to calculate routes with intermediate waypoints. The team knows that there is demand for this feature, but at the moment I cannot say whether/when it will be implemented.

Best regards,
Alexandra