Posts

Post not yet marked as solved
145 Replies
Post marked as solved
6 Replies
You can add multiple destinations as shownvar myDirections = new mapkit.Directions(); myDirections.route({ origin: "San Francisco, CA", destination: "Los angeles, CA", destination: "Riverside, CA", destination: "Las Vegas, NV", transportType: mapkit.Directions.Transport.Automobile }, function(error, data) { // Results are returned asynchronously via this callback function, in `data` console.table(data.routes); console.log(getMiles(data.routes[0].distance)+' miles'); } );
Post marked as solved
6 Replies
No this would only give directions from the starting point to each individual point along the route.
Post marked as solved
6 Replies
My question was how can I get the same results for say 5 or 10 locations?? The first code set is just a regular working example.