This point allows you to capture a sequence of GPS coordinates at set intervals, such as every 10 metres or every 30 seconds. The GPS Tracker point can be integrated with the Map Point to provide a live map with a path drawn between coordinates.
The GPS Tracker point can be integrated with the Map point in order to display a live map with a line drawn between coordinates as they are stored. This can be done by following these steps:
%lat%,%long%
The GPS Tracker point can be configured in the Mobile Data Anywhere Designer to customise the behaviour of the point. Below is an example of the properties window for a GPS Tracker point, opened in the Mobile Data Anywhere Designer.
The format settings allow you to customise the information that is recorded in the GPS Tracker point's value. The %code Insert Token dropdown allows you to select from various GPS information that can be added to the point's recorded value, including values such as latitude, longitude and much more.
It can be useful to store a date/time for each coordinate that is captured. This can be done by opening the
Insert Token
box and selecting any of the
Date
,
Time
or
Date Time
options.
If you plan to integrate the GPS Tracker with a Map point please ensure that you include the required format settings, see the Integration with Map Point section for details.
These settings allow you to customise how the point functions when the point is used on a mobile device.
This is the interval between each coordinate that is captured and will determine how frequently coordinates are captured.
The
Capture Interval
is dependant on the selected
Capture Mode
and will either be:
Capture Mode: Time interval
The capture interval will be a number of seconds between captures.
Capture Mode: Distance interval
The capture interval will be a number of metres between captures.
GPS tracking can cause a significant drain on battery usage over time. The smaller the capture interval, the more the battery will be drained. It is recommended to use a capture interval of 60 seconds or 100 metres.
The GPS Tracker will store captured coordinates in a delimited string, for example a GPS tracker that has captured 3 coordinates would store:
32.432331,-120.031219;32.432331,-120.031219;32.432331,-120.031219
Each coordinate is separated using the default delimiter character
;
which can be configured using this setting.
When enabled, the GPS Tracker point will automatically start capturing coordinates when a new or active
session is opened and will automatically stop when the session is finished. When disabled, the GPS Tracker
can be started and stopped manually using displayed
Start
and
Stop
buttons. If the GPS Tracker is not stopped manually, it will automatically stop when the session is finished.
Apple iOS devices require permission to access the location services on the device. The app will prompt you to grant permission with the prompts seen below:
You can check on the status of permissions from within
the app by opening the
Settings page
and scrolling down to the
Location & Privacy Settings
section.
The location service status will be one of the following:
Status | Meaning |
---|---|
Not Set | Permission has not been requested yet. The app will request permission access when location services are required. |
No Access | The user has denied access to location services. Location services cannot be used by the app until the user changes the location service permissions for the app. |
Limited | The user has only granted permission to allow location services while the app is in use. The user has not granted permission for the app to use location services while the app is in the background. This will impact the performance of points such as the GPS Tracker point where location information needs to be tracked over time. |
Full Access | The user has granted permission to access location services while the app is any state. This will allow all points to use location services as required. |
To change the permission settings for location services, you will need to open the Location and Privacy settings on the device. For devices running recent versions of iOS (iOS 8+) you can quickly navigate to the location and privacy settings from within the Mobile Data Anywhere app:
Location & Privacy Settings
section.
Location and Privacy Settings
button.
Location.
Always
to provide the best experience.
The following samples demonstrate how the GPS Tracker point can be used to capture a sequence of locations and also how a path between the coordinates can be drawn onto a Map point . Get started by downloading the GPS Tracker point sample project, below.