Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created October 22, 2018 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/9d0a35010f277bb2904e6677439398dd to your computer and use it in GitHub Desktop.
Save fitomad/9d0a35010f277bb2904e6677439398dd to your computer and use it in GitHub Desktop.
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