calculate time and distance #1739
Answered
by
JaffaKetchup
ruqaiyasattar
asked this question in
Q&A
|
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 |
Answered by
JaffaKetchup
Nov 28, 2023
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. |
0 replies
Answer selected by
ruqaiyasattar
|
Do I need to use other Open source solution than flutter_map? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.