# Gps tracker location value

**URL:** <https://forums.losant.com/t/gps-tracker-location-value/1877>\
**Category:** Help\
**Tags:** dashboard\
**Created:** [June 12, 2019, 1:22pm UTC](https://forums.losant.com/t/gps-tracker-location-value/1877 "2019-06-12T13:22:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [June 12, 2019, 1:22pm UTC](https://forums.losant.com/t/gps-tracker-location-value/1877/1 "2019-06-12T13:22:51Z")

</div>

If I have a device I want to show on a map, can the gps location string be coming from a device tag value? Or does it have to be coming from an attribute value?  
My devices are never moving so having a workflow just to simulate a static location seems overkill.

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [June 12, 2019, 1:30pm UTC](https://forums.losant.com/t/gps-tracker-location-value/1877/2 "2019-06-12T13:30:07Z")

</div>

Hi Lars,

The device location cannot currently be set by a tag, but I will create a request for this functionality and let you know if it is implemented.

Thanks!  
Julia

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [June 12, 2019, 1:38pm UTC](https://forums.losant.com/t/gps-tracker-location-value/1877/3 "2019-06-12T13:38:24Z")

</div>

I noticed the Kanarra digital example had devices with gps strings in the tags. But maybe those are used as the source for the workflow updating the attributes.

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [June 12, 2019, 2:27pm UTC](https://forums.losant.com/t/gps-tracker-location-value/1877/4 "2019-06-12T14:27:23Z")

</div>

You are correct. To support static locations, I typically trigger a workflow when the device reports state and then use that workflow to pull the location from a tag and then report it as state as well. You automatically get the tag values in the starting payload from the [Device: State Trigger](https://docs.losant.com/workflows/triggers/device/).

Just remember to put a conditional after the trigger, otherwise when you report the location as state, you will re-trigger the same workflow again in an infinite loop. We automatically catch and prevent that loop, but your workflow won’t work as expected.

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [June 12, 2019, 3:22pm UTC](https://forums.losant.com/t/gps-tracker-location-value/1877/5 "2019-06-12T15:22:43Z")

</div>

If you need more info on the infinite loop problem, there is a good forum post about that here: [Workflow Reentrant Loop For Device](https://forums.losant.com/t/workflow-reentrant-loop-for-device/616)
