From 42d8b272665e18a9b8c2a55752084ad0f6ae1fd4 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Mon, 11 Apr 2022 18:37:40 +0200 Subject: [PATCH] Add time and energy to messages --- js/plugin/Routing.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/js/plugin/Routing.js b/js/plugin/Routing.js index 1499f8e..a19ce19 100644 --- a/js/plugin/Routing.js +++ b/js/plugin/Routing.js @@ -601,8 +601,24 @@ BR.Routing = L.Routing.extend({ 'InitialCost', 'WayTags', 'NodeTags', + 'Time', + 'Energy', + ], + [ + latLng2.lng * 1000000, + latLng2.lat * 1000000, + null, + distance, + null, + null, + null, + null, + null, + '', + '', + null, + null, ], - [latLng2.lng * 1000000, latLng2.lat * 1000000, null, distance, null, null, null, null, null, '', ''], ], }; layer.feature = turf.lineString(