Skip to content

Instantly share code, notes, and snippets.

@LouisaKB
Created November 8, 2016 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LouisaKB/0a823c17d0a890bf256bad0e9b4fff4e to your computer and use it in GitHub Desktop.
Save LouisaKB/0a823c17d0a890bf256bad0e9b4fff4e to your computer and use it in GitHub Desktop.
function createRequest(travelTime, mode) {
return JSON.stringify({
app_id: "xxx",
app_key: "xxx",
points: poi,
sources: {
source1: {
coords: origin,
start_time: getMonday8Am().toISOString(),
travel_time: travelTime,
mode: mode,
properties: ["time"]
}
},
destinations: {},
remove_wait_time: false
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment