# \[Solved\] Get speed value on location sensor

**URL:** https://community.thunkable.com/t/solved-get-speed-value-on-location-sensor/71929
**Category:** Questions about Thunkable X
**Tags:** solved
**Created:** [March 11, 2019, 12:38pm UTC](https://community.thunkable.com/t/solved-get-speed-value-on-location-sensor/71929 "2019-03-11T12:38:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sousie](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sousie](https://community.thunkable.com/u/sousie)
#### Post date: [March 11, 2019, 12:38pm UTC](https://community.thunkable.com/t/solved-get-speed-value-on-location-sensor/71929/1 "2019-03-11T12:38:43Z")

</div>

how can I get speed value??

---

<div class="post-metadata">

### Author: ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)
#### Post date: [March 11, 2019, 12:53pm UTC](https://community.thunkable.com/t/solved-get-speed-value-on-location-sensor/71929/2 "2019-03-11T12:53:27Z")

</div>

You need to get the difference between the two longs  
The difference between the two lats,  
Convert them to meters, which requires some math, but all the functions are there.  
Then you take the time difference between the first lat and second lat,  
Now you have Meters/Second/Minute or whatever time value used.

---

<div class="post-metadata">

### Author: ![Balanced\_Kitchen](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@Balanced\_Kitchen](https://community.thunkable.com/u/Balanced_Kitchen)
#### Post date: [March 13, 2019, 8:08am UTC](https://community.thunkable.com/t/solved-get-speed-value-on-location-sensor/71929/3 "2019-03-13T08:08:36Z")

</div>

The sensor has a parameter for this - speed!  
[https://docs.thunkable.com/location-sensor](https://docs.thunkable.com/location-sensor)

---

<div class="post-metadata">

### Author: ![darren](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/darren/32/69854_2.png) [@darren](https://community.thunkable.com/u/darren)
#### Post date: [April 28, 2019, 2:35am UTC](https://community.thunkable.com/t/solved-get-speed-value-on-location-sensor/71929/4 "2019-04-28T02:35:51Z")

</div>

Thanks @Balanced_Kitchen for pointing that out! I’m answering this for another thunker - so I thought I’d leave these snapshots here.

### The Location Object

The ‘_GetCurrentLocation_’ method returns an object called ‘_Location_’. You can display the object in a label to see everything in the object with the following:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1ae63065ef5272c7c2adacbd729451bd0c3881e5.png)

### The Speed Property

If you are looking for the speed, you’ll need to get the ‘_speed_’ property from the ‘_coords_’ object from the ‘_location_’ object. That looks like this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/4/d41698191fedc034b4db5fe019b07e299f585a03.png)

### _Happy Coding!_

---

<div class="post-metadata">

### Author: ![darren](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/darren/32/69854_2.png) [@darren](https://community.thunkable.com/u/darren)
#### Post date: [July 28, 2020, 12:58pm UTC](https://community.thunkable.com/t/solved-get-speed-value-on-location-sensor/71929/5 "2020-07-28T12:58:06Z")

</div>

**Note:** I had to enable ‘HighAccuracy’ to stop receiving a value of ‘-1’.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/6/96bdcfedc8cc31fad565da87c8510b2feb59502f.png)

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:13pm UTC](https://community.thunkable.com/t/solved-get-speed-value-on-location-sensor/71929/6 "2024-11-08T12:13:55Z")

</div>


