calculate time and distance #1739
-
how to Calculate time and distance from one location to another? I did get distance using Distance class final Distance distance = const Distance(); But need guidance for time calculation |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Note that that will give you the straight line distance. To find the driving distance and time between two points, you'll need a routing machine/API, for example the Google Maps Platform, Mapbox Routing, or a more open source option like OSRM or Valhalla. More information can be found on our docs site. |
Beta Was this translation helpful? Give feedback.
-
Do I need to use other Open source solution than flutter_map? |
Beta Was this translation helpful? Give feedback.
Note that that will give you the straight line distance.
To find the driving distance and time between two points, you'll need a routing machine/API, for example the Google Maps Platform, Mapbox Routing, or a more open source option like OSRM or Valhalla. More information can be found on our docs site.