With JS anf turfjs library I need on several markers calculate
1) medium speed
2) time of arrival at any marker point
I make as:
const markerIds = Object.keys(markers)
const points2Data = []
let summarized_distance= 0
let arrival_date= moment(tripRow.arrival_date)// arrival time
let departure_date= moment(tripRow.departure_date) // departure time
for (let i = 1; i < markerIds.length; i++) {
const marker = markers[markerIds[i - 1]]...
Code (JavaScript):
from JavaScript https://ift.tt/2vtvsjS
via IFTTT
0 Comments