Created
January 13, 2022 17:50
-
-
Save tomastraveltime/6ee4354915fdac538617f0f880ac0e8c 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
var properties = Object.values(location.properties); | |
var travelTime = properties[0].travel_time; | |
var travelTime = parseInt(travelTime); | |
listItem.innerHTML = location.id + ' - ETA: ' + Math.round(travelTime/60) + ' mins' ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment