Created
February 21, 2023 08:14
-
-
Save TravelTime-Frontend/4004d87548f023ad736955f7892a60bd 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
// 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 = "2019-01-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; | |
// These secret variables are needed to authenticate the request. Get them from http://docs.traveltimeplatform.com/overview/getting-keys/ and replace | |
var APPLICATION_ID = "place your app id here"; | |
var API_KEY = "place your api key here"; | |
// Map focus point when code sample is loaded | |
var mymap = L.map('mapid').setView([38.8, -77.0365], 9); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment