Calculate route witha start point only (no end point)

Hi all!

I am trying to figure out if it’s possible to calculate a route where we specify the start point but not the end point with route optimisation using the calculate route service, does anyone have any experience with how to do this?

Cheers,

Ed

Is it about calculating range?

1 Like

No, just to get the best route through a series of waypoints but knowing that I need to start and end at the home location.

So the destination = starting point.
Currently we don’t have an optimal solution for this.

But you can try with Routing API. Just provide locations as: home:1stwaypoint:2ndwaypoint:(…):nthendpoint:home with computeBestOrder parameter. Maybe this is enough for your case.

1 Like

I have that but it seems to be optimising the home waypoints too :frowning:

Here is the URL I am testing with:
https://api.tomtom.com/routing/1/calculateRoute/51.984750299999995%2C-2.5944271%3A51.10966579728992%2C-0.2631441312701695%3A51.413051973123075%2C0.07110300159846233%3A51.11381332909856%2C-0.2272969127811738%3A51.304894368656946%2C-0.11129470785406909%3A51.544701803875185%2C0.155718966629461%3A51.02606826047937%2C-0.44059191004015885%3A51.29245567916578%2C-0.07219062364955736%3A51.591835096516355%2C0.1846332941931103%3A51.58065613432181%2C0.16060672673102838%3A51.984750299999995%2C-2.5944271/json?key=****&computeBestOrder=true&routeRepresentation=summaryOnly&computeTravelTimeFor=none&departAt=now&routeType=fastest&traffic=false&travelMode=car&avoid=unpavedRoads&avoid=tollRoads&avoid=ferries

There are 11 points in this request.
In the response there is a section with optimizedWaypoints, where it describes the order of waypoints (9 watpoints).
Starting point and destination doesn’t change.

1 Like