Recalculate route with Google Maps API

Asked

Viewed 163 times

7

I’m making a tracking app. I wanted to send an alert in the Google Maps Javascript API when the user changes the route or the route is recalculated. I would like to know how to calculate the route change.

Thank you.

  • Calculates whether the current KM has been changed. If so, why did you change the route.

  • How are you passing the route to the API? Enter your code, and maybe I can help you .

  • 2

    If you can, comment on the code you are using.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.