How to calculate speed? #292
-
I'm thinking about a new app idea, and want to detect the speed that the device is moving. As far as I can see, there's no "speed" sensor. I could calculate speed by e.g. every few seconds getting latitude/longitude values from the Geolocation API and doing the math to figure out the distance moved. Is there an easier approach to this? Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Define the "speed" sensor :) You have a valid approach using a GPS for that task. The second option would be to use a cadence sensor. They are natively supported in our Cycling Workouts but if you're making your own app, then you would rely on the BLE Master which is currently supported only on the Balance watch. That said these sensors are still sort of "invasive" as they rely on the rotational force compared to GPS. |
Beta Was this translation helpful? Give feedback.
Define the "speed" sensor :)
You have a valid approach using a GPS for that task. The second option would be to use a cadence sensor. They are natively supported in our Cycling Workouts but if you're making your own app, then you would rely on the BLE Master which is currently supported only on the Balance watch. That said these sensors are still sort of "invasive" as they rely on the rotational force compared to GPS.