Add time and energy to messages
This commit is contained in:
parent
5dd801d714
commit
42d8b27266
1 changed files with 17 additions and 1 deletions
|
|
@ -601,8 +601,24 @@ BR.Routing = L.Routing.extend({
|
||||||
'InitialCost',
|
'InitialCost',
|
||||||
'WayTags',
|
'WayTags',
|
||||||
'NodeTags',
|
'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(
|
layer.feature = turf.lineString(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue