# How can I read the Longitude and Latitude coordinates of my Homey using a script?

**URL:** <https://community.homey.app/t/how-can-i-read-the-longitude-and-latitude-coordinates-of-my-homey-using-a-script/157379>\
**Category:** Questions & Help\
**Tags:** homeyscript\
**Created:** [July 20, 2026, 6:22am UTC](https://community.homey.app/t/how-can-i-read-the-longitude-and-latitude-coordinates-of-my-homey-using-a-script/157379 "2026-07-20T06:22:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francis\_De\_Sain](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/francis_de_sain/32/167736_2.png) [@Francis\_De\_Sain](https://community.homey.app/u/Francis_De_Sain)\
**Post date:** [July 20, 2026, 6:22am UTC](https://community.homey.app/t/how-can-i-read-the-longitude-and-latitude-coordinates-of-my-homey-using-a-script/157379/1 "2026-07-20T06:22:55Z")

</div>

**Hello reader,**

**I am a newbie and not really familiar with Homeyscript yet.**  
**But is there a way to read the coordinates of the Location setting using a script?**  
**Are there any reference pages where I can look up more information about the commands and their corresponding options that can be used in Homeyscript?**

**Thanks in advance for the help with these two questions.**

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [July 20, 2026, 6:41am UTC](https://community.homey.app/t/how-can-i-read-the-longitude-and-latitude-coordinates-of-my-homey-using-a-script/157379/2 "2026-07-20T06:41:54Z")

</div>

That’s pretty easy to do, and “all” information about it, is found on the [developer WebAPI pages](https://athombv.github.io/node-homey-api/HomeyAPIV2.ManagerGeolocation.html):

```auto
const location = await Homey.geolocation.getOptionLocation();
log('latitude: ', location.value.latitude);
log('longitude: ', location.value.longitude);

```

---

<div class="post-metadata">

**Author:** ![Francis\_De\_Sain](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/francis_de_sain/32/167736_2.png) [@Francis\_De\_Sain](https://community.homey.app/u/Francis_De_Sain)\
**Post date:** [July 20, 2026, 3:24pm UTC](https://community.homey.app/t/how-can-i-read-the-longitude-and-latitude-coordinates-of-my-homey-using-a-script/157379/3 "2026-07-20T15:24:28Z")

</div>

Thank you, it works.
