How can I calculate the duration between two or more location ?

ofis berr

Lurker
Apr 7, 2021
1
0
5
I am developing a maps application. I need to take distance and duration between two locations. Then I use these infos by current user location. But I couldn't implement google APIs. How can take the current location and calculate distance,duration between another location?