Cleanup and credits
This commit is contained in:
parent
7aa2fcb93c
commit
393a3fa129
5 changed files with 6 additions and 5 deletions
|
|
@ -1,3 +1,4 @@
|
|||
// derived from BRouter btools.router.OsmTrack.formatAsGpx
|
||||
BR.Gpx = {
|
||||
format: function (geoJson, turnInstructionMode = 0, transportMode = 'bike') {
|
||||
if (!geoJson?.features) return '';
|
||||
|
|
@ -72,7 +73,6 @@ BR.Gpx = {
|
|||
comment += ' plain-ascend = ' + props['plain-ascend'];
|
||||
comment += ' cost=' + props['cost'];
|
||||
if (props['total-energy']) {
|
||||
// TODO 'wh'? (also for stats, see issue),
|
||||
// see brouter OsmTrack.getFormattedEnergy
|
||||
comment += ' energy=' + (props['total-energy'] / 3600000).toFixed(1) + 'kwh';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue