- Add the Google Maps API key in the google_api xml file.
- Add the Google Distance Matrix API in the google_api.xml file.
- Display the user current location on map.
- Animate the user marker on google maps when the user current location changed.
- Calculate the distance with the Google Distance Matrix API.
- Calculate the distance timely after every ten seconds.
To read more about how to use this app this artice.