mpetazzoni / leaflet-gpx

A GPX track plugin for Leaflet.js
http://mpetazzoni.github.io/leaflet-gpx
BSD 2-Clause "Simplified" License
550 stars 119 forks source link

Add speed information #121

Closed f-fl0 closed 3 years ago

f-fl0 commented 3 years ago

This PR adds the support for speed information either read directly from <speed> elements of the gpx file or computed from successive positions. Following the current API naming convention, the speed information along the track can be accessed via get_speed_data or get_speed_data_imp and the maximum speed via get_speed_max or get_speed_max_imp.

mpetazzoni commented 3 years ago

Thanks, what a great contribution!