How to Show Routes Between User and Delivery Person Based on Location in FlutterFlow?

Custom Code

I'm working on a project in FlutterFlow where I need to show the route between a user's location and a delivery person's location. Both the user's and delivery person's locations are available (latitude and longitude).

I want to:

  1. Display the route on a map (Google Maps widget).

  2. Dynamically fetch and show the directions using the Google Directions API.

  3. Update the route in real-time if either the user or the delivery person's location changes.

Could someone guide me on:

  • Setting up Google Maps and the Directions API in FlutterFlow?

  • Fetching and displaying the route between two points?

  • Handling real-time updates for the route?

Any code examples, step-by-step instructions, or best practices would be greatly appreciated!

What have you tried so far?

i tried by using the google maps . but wont able to get this

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply