Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created October 13, 2016 11:07
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/1f187f74c06da771a329400d072a2109 to your computer and use it in GitHub Desktop.
Save here-devblog-gists/1f187f74c06da771a329400d072a2109 to your computer and use it in GitHub Desktop.
function HERERoute (map, platform, routeOptions) {
var router = platform.getRoutingService();
var onSuccess = function(result) {
console.log('Route found!', result);
};
var onError = function(error) {
console.error('Oh no! There was some communication error!', error);
}
router.calculateRoute(routeOptions, onSuccess, onError);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment