Skip to content

Instantly share code, notes, and snippets.

@lene
Last active March 20, 2018 14:26
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 lene/7498f7da9aaa96928ec5effea97adf8f to your computer and use it in GitHub Desktop.
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
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