graphhopper / directions-api

Issues for the GraphHopper Directions API
https://graphhopper.com/api/1/docs/
60 stars 25 forks source link

Documentation mistake? #52

Closed karussell closed 7 years ago

karussell commented 7 years ago

Is there a mistake?

"For example, if an item needs to be delivered between 7am and 10am then specify the array as follows: [ { "earliest": 25200, "latest" : 32400 } ]"

It should be 36000 instead? As 10am is 10*3600=36000? 32400 is 9am ...

karussell commented 7 years ago

Maybe we should add the formula to be more precise?

(day * 24 + hours) * 3600 + minutes * 60