Instantly share code, notes, and snippets.

Embed
What would you like to do?
let origin = element("placeOrigin").value;
let destination = element("placeDestination").value;
let directionRequest = {
origin : origin,
destination : destination,
transportType : mapkit.Directions.Transport.Automobile,
requestsAlternateRoutes : multiRoute
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment