Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created October 27, 2016 11:01
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 here-devblog-gists/7dd76445609d606dd610a74e56372ff3 to your computer and use it in GitHub Desktop.
Save here-devblog-gists/7dd76445609d606dd610a74e56372ff3 to your computer and use it in GitHub Desktop.
HEREMap.prototype.drawRoute = function(fromCoordinates, toCoordinates) {
var routeOptions = {
mode: 'fastest;car',
representation: 'display',
waypoint0: locationToWaypointString(fromCoordinates),
waypoint1: locationToWaypointString(toCoordinates)
};
this.routes = new HERERoute(this.map, this.platform, routeOptions);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment