-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distance duratoin #79
Comments
Hi @iBasit - it's could be interesting to have it :) But I don't know it could be implemented smoothly yet. Any ideas are welcome! |
I did few rough estimate and then calculate with google api for distance calculation, so far it was minute up or exact (if round it), which is not big difference. It wont be perfect solution, but it can be initial start. Solution:If distance by km is not far away, then calculate 30 miles per hour (which is car speed). If distance is far away after certain km range, then calculation should be 60 miles per hour. value: is seconds values Something on note: |
@iBasit Maybe we can use the API instead? |
Yes Google API is good for one time call on each location, but if you were building taxi app or similar app. Then checking every 30 secs for all the thousands or 100 thousands of cars will put lots of requests. It would not be good idea for some, but for some it will solve the issue. |
Is there a way to get the distance duration like https://developers.google.com/maps/documentation/distance-matrix/intro?hl=en
The text was updated successfully, but these errors were encountered: