Results 1 to 2 of 2

Thread: Multi waypoint

  1. #1
    Neuer skobbler
    Join Date
    21.04.2014
    Posts
    1

    Idee Multi waypoint

    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

  2. #2
    Oberskobbler
    Join Date
    10.09.2013
    Posts
    208
    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •