Created
November 8, 2016 11:40
-
-
Save LouisaKB/0a823c17d0a890bf256bad0e9b4fff4e 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 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