Skip to content

Instantly share code, notes, and snippets.

@TravelTime-Frontend
Created February 21, 2023 13:14
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 TravelTime-Frontend/39df675fd90a72104accedfed740adfa to your computer and use it in GitHub Desktop.
Save TravelTime-Frontend/39df675fd90a72104accedfed740adfa to your computer and use it in GitHub Desktop.
// The name of the starting location. We will have to geocode this to coordinates.
var startingLocation = "The White House, DC";
// The departure time in an ISO format.
var departureTime = "2018-07-04T09:00:00-0500";
// Travel time in seconds. We want 1 hour travel time so it is 60 minutes x 60 seconds.
var travelTime = 60 * 60;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment