# \[System\]Mobile/Location

**URL:** <https://forum.inductiveautomation.com/t/system-mobile-location/26913>\
**Category:** Ignition\
**Created:** [July 26, 2019, 5:40pm UTC](https://forum.inductiveautomation.com/t/system-mobile-location/26913 "2019-07-26T17:40:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert.giles](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@Robert.giles](https://forum.inductiveautomation.com/u/Robert.giles)\
**Post date:** [July 26, 2019, 5:40pm UTC](https://forum.inductiveautomation.com/t/system-mobile-location/26913/1 "2019-07-26T17:40:04Z")

</div>

In the tag browser: [System]Mobile/Location  
Looks like GPS info should populate these tags. From where? How?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 26, 2019, 5:46pm UTC](https://forum.inductiveautomation.com/t/system-mobile-location/26913/2 "2019-07-26T17:46:12Z")

</div>

Those tags would be populated by the legacy [Mobile Module](https://docs.inductiveautomation.com/display/DOC79/Mobile+Module), which did some smoke-and-mirrors to “support” Vision clients on mobile devices. For a huge list of reasons, it was a dead-end technologically, so it’s been replaced completely by Perspective in Ignition 8.0.

More specifically - those tags should get values after a mobile browser session accepts the prompt to share location data. That data then gets send from the mobile browser back to the gateway, which then puts it into the client tags.

---

<div class="post-metadata">

**Author:** ![Robert.giles](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@Robert.giles](https://forum.inductiveautomation.com/u/Robert.giles)\
**Post date:** [July 30, 2019, 1:13pm UTC](https://forum.inductiveautomation.com/t/system-mobile-location/26913/3 "2019-07-30T13:13:49Z")

</div>

So if I wanted to put a tablet in a fork truck to monitor inventory at specific locations on the yard. I would need a Perspective licence on my gateway? And if I had ten fork trucks, how many licenses would I need?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 30, 2019, 1:16pm UTC](https://forum.inductiveautomation.com/t/system-mobile-location/26913/4 "2019-07-30T13:16:30Z")

</div>

> [@Robert.giles](#):
>
> So if I wanted to put a tablet in a fork truck to monitor inventory at specific locations on the yard. I would need a Perspective licence on my gateway?

Unless these tablets can run Vision clients.

> [@Robert.giles](#):
>
> And if I had ten fork trucks, how many licenses would I need?

One license, unless each fork truck was also running its own gateway.

---

<div class="post-metadata">

**Author:** ![Robert.giles](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@Robert.giles](https://forum.inductiveautomation.com/u/Robert.giles)\
**Post date:** [July 30, 2019, 3:05pm UTC](https://forum.inductiveautomation.com/t/system-mobile-location/26913/5 "2019-07-30T15:05:14Z")

</div>

Microsoft Surface tablets run Windows 10 and have internal GPS receivers. Would it be feasible to use one for my scenario? If so, how could I get the GPS data from the tablet to the Ignition gateway?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 30, 2019, 3:17pm UTC](https://forum.inductiveautomation.com/t/system-mobile-location/26913/6 "2019-07-30T15:17:26Z")

</div>

A Surface tablet should be able to run Vision as well as Perspective, but your access to GPS data will be much, much easier with Perspective. In Perspective, you would enable the session property for geolocation, and then the mobile device (or web browser, if it supports the requisite API) would prompt the user to send location data. Once that’s accepted, you’ll start getting updated values in the requisite session properties:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/af07af028774dd3a5f88a9ddd5f56e1c022be3ea.png)

---

<div class="post-metadata">

**Author:** ![Robert.giles](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@Robert.giles](https://forum.inductiveautomation.com/u/Robert.giles)\
**Post date:** [July 30, 2019, 4:25pm UTC](https://forum.inductiveautomation.com/t/system-mobile-location/26913/7 "2019-07-30T16:25:25Z")

</div>

I’m being asked to avoid using Perspective if possible, how much more difficult would it be in a regular Vision client?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 30, 2019, 4:34pm UTC](https://forum.inductiveautomation.com/t/system-mobile-location/26913/8 "2019-07-30T16:34:01Z")

</div>

The (first) complicated piece in Vision is even accessing the device’s location. Web browsers already have the APIs for this data, but Java does not have access to this directly. In basically everything I can find, you need to leverage some existing “native” library (ie, compiled specifically for x64 Windows) that Java can call, and hope that your device’s GPS drivers have an API that’s also supported.

You could first start with something like this to see if it’s even possible following that route: [GPS Inspector - A GPS Tool interface written in Java](http://www.gano.name/shawn/GpsInspector/)

The other option is, basically, writing your own C# or other native binary that uses Windows’ [Geolocation API](https://docs.microsoft.com/en-us/uwp/api/Windows.Devices.Geolocation) and then, within Ignition, running that separate program and parsing the results; something like the approach described here:

> <https://stackoverflow.com/questions/55717465/access-gps-location-from-java-on-windows>

This is decidedly _not_ trivial. Again - the mobile module did it by leaning on web browsers, which already have this ability programmed in. Perspective uses the same “trick”, but Vision simply does not have this capability programmed in.

---

<div class="post-metadata">

**Author:** ![j.kennedy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/j.kennedy/32/22136_2.png) [@j.kennedy](https://forum.inductiveautomation.com/u/j.kennedy)\
**Post date:** [March 11, 2021, 1:18am UTC](https://forum.inductiveautomation.com/t/system-mobile-location/26913/9 "2021-03-11T01:18:45Z")

</div>

Hello,  
In the same thread, if the 10 forktrucks were used with perspective tablets, how is it possible to obtain the relevant geolocation for each and use to move separate Perspective map ui markers or similar for each. How would the individual forklifts be identified to be mapped to the relevant marker?
