Last active
March 20, 2018 14:26
-
-
Save lene/7498f7da9aaa96928ec5effea97adf8f to your computer and use it in GitHub Desktop.
Add this at the end of here.js to request and display a Park and Ride route
This file contains hidden or 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
var mobility = new H.Mobility({ | |
map: map, | |
app_id: '{YOUR_APP_ID}', // <-- ENTER YOUR APP ID HERE | |
app_code: '{YOUR_APP_CODE}', // <-- ENTER YOUR APP CODE HERE | |
}); | |
var ui = mobility.createDefaultUI(); | |
mobility.route({ | |
dep: {YOUR_START_POINT}, // <-- ENTER YOUR START POINT HERE | |
arr: [41.844238,-87.638862], | |
time: '2018-03-20T07:30:00', | |
graph: 1, | |
maneuvers: 1 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment