Select to view content in your preferred language

How to calculate speed and generate a new field using latitude and longitude, time from attribute table

157
1
05-16-2024 12:18 PM
RehanChaudhary
Occasional Contributor

i have an application built in web app builder that is getting the data via stream services via geoevent server . The data has GPS coordinate(lat, long) coming for at various time stamps for a device. I want to be able to add a new field to the datatable to calculate the speed as i recieve the data. I know there is a formula for speed using lat long but how can i implement it . How can i compare the latest data with the old one to find the difference in distance and time?
i can also move my app to expereince builder if required. 

0 Kudos
1 Reply
JakeSkinner
Esri Esteemed Contributor

Hi @RehanChaudhary,

I haven't used this processor, yet, but you could see if this calculates the speed correctly:

https://github.com/Esri/motion-calculator-for-geoevent

0 Kudos