Closed frederikbosch closed 4 years ago
What's the impact of a 0-elevation point on the calculation of elevation gain/loss?
@mpetazzoni If you think there is an impact, then maybe this is better solved directly in the get_elevation_data
. Before calling the map
method, maybe do a filter
on null values first.
When
ll.meta.ele
is null (which is possible), problems are caused when callingget_elevation_data
, specificallyreturn a.toFixed(2) + ' km, ' + b.toFixed(0) + ' m';
, thereb
cannot be null becausetoFixed
cannot be called on null.