Created
October 13, 2016 11:07
-
-
Save here-devblog-gists/1f187f74c06da771a329400d072a2109 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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