Posts

Post marked as solved
6 Replies
994 Views
In this sample code I can get the routes to 2 different locations.var myDirections = new mapkit.Directions(); myDirections.route({ origin: "San Francisco, CA", destination: "Los angeles, CA", transportType: mapkit.Directions.Transport.Automobile }, function(error, data) { // Results are returned asynchronously via this callback function, in `data` } );How can I get the same results for say 5 or 10 locations?? I have the lat and long coordinates if that is better.var myDirections = new mapkit.Directions(); myDirections.route({ origin: "San Francisco, CA", otherLocation: "other location", otherLocation: "other location etc", destination: "Los angeles, CA", transportType: mapkit.Directions.Transport.Automobile }, function(error, data) { // Results are returned asynchronously via this callback function, in `data` } );
Posted
by jeff60.
Last updated
.