I am using react-native-maps and I would like to get the travel time provided by Google maps between my current location and another location. The answers I have seen on StackOverflow are in violation of Google policy. Swift: Get travel time between two locations using Google Maps and Using Google Maps API to get travel time data [closed]
Asked
Active
Viewed 896 times
0
-
What is wrong with creating a directions object, load waypoints, await 'load', then get the duration from the response, as in the link you shared. – Ben Butterworth Jan 01 '20 at 05:23
-
@ZenBoat I didn't read all the comments and the proposed new soluting below the approved answer. I will implement and update the question. – Cho Cho Jan 01 '20 at 06:04