Is it possible to record my track and download it, like with this Leaflet plugin https://github.com/dj0001/Leaflet.mytrack ?
I can't quite see what that is doing specifically. If it's recording or loading a route and display, you can do that by building a polyline and displaying it.
This recording needs to save points periodically, calculate the total distance of the path, draw polylines between the points, calculate the pace. that possible with this plugin? I couldn't find a measuring tool.
Well, you can do that (I'm doing something similar, recording routes, loading routes, getting map directions and drawing them etc), but the plugin won't do most of that for you.
I.e you will need to build the polylines to be drawn, calculate the distance from the points and hence the pace. All the map is doing is taking the polylines and drawing them on the map etc, taking your markers and putting them on the map, that type of thing.
Having said that, most of it is straightforward, and there are various helper functions out there, like I think some of the Geolocation stuff or LatLng plugins have 'distance' methods between two points.
Feel free to ping me separately as maybe there could be some overlap or synergy there.
@ibrierley thanks for the detailed answer
Well, you can do that (I'm doing something similar, recording routes, loading routes, getting map directions and drawing them etc), but the plugin won't do most of that for you.
I.e you will need to build the polylines to be drawn, calculate the distance from the points and hence the pace. All the map is doing is taking the polylines and drawing them on the map etc, taking your markers and putting them on the map, that type of thing.
Having said that, most of it is straightforward, and there are various helper functions out there, like I think some of the Geolocation stuff or LatLng plugins have 'distance' methods between two points.
Feel free to ping me separately as maybe there could be some overlap or synergy there.
Can you help me how to get routes through streets between two locations like uber with any example(with flutter_map)? I am still learning.
If you want to get routes, you want to start by being able to query something like https://docs.mapbox.com/help/how-mapbox-works/directions/ (I the google directions API, you have to use with google maps, but I may be wrong). I think you can include intermediate points to route through as well.
The API will return something like some JSON (iirc I think you can specify a few different types of response), which you can then break down with latlngs to plot.
I think this is a more specific URL actually that may be a better start point.
Most helpful comment
Well, you can do that (I'm doing something similar, recording routes, loading routes, getting map directions and drawing them etc), but the plugin won't do most of that for you.
I.e you will need to build the polylines to be drawn, calculate the distance from the points and hence the pace. All the map is doing is taking the polylines and drawing them on the map etc, taking your markers and putting them on the map, that type of thing.
Having said that, most of it is straightforward, and there are various helper functions out there, like I think some of the Geolocation stuff or LatLng plugins have 'distance' methods between two points.
Feel free to ping me separately as maybe there could be some overlap or synergy there.