Reference > Functions reference > Mobile functions > Location
 

Location

Returns the current latitude and longitude on an iOS device running FileMaker Go, and their accuracy.

Format 

Location (accuracy {; timeout})

Parameters 

accuracy - any numeric expression or field containing a number that represents a distance in meters.

timeout - any numeric expression or field containing a number that represents the most time it will take to fetch the location. Measured in seconds, the default value is 60.

Parameters in braces { } are optional.

Data type returned 

Text

Originated in 

FileMaker Pro 12.0

Description 

This function returns the current latitude and longitude on an iOS device running FileMaker Go, and the horizontal accuracy of the values returned. The location is obtained via GPS, cellular network, or Wi-Fi.

Returns and caches the location of a device in the format latitude, longitude. You can use the values that are returned to query map services. Location returns the horizontal accuracy in meters and fetches the location values until timeout. If you cancel the process, FileMaker Go returns the most accurate location in the cache (if any).

If no location is received, FileMaker Go returns an empty string. In FileMaker Pro Advanced, Location returns an empty string.

Notes 

To avoid excessive battery consumption and repeat fetches, specify a smaller number for timeout.

Example 1 

Location ( 100; 40 ) takes up to 40 seconds to return the latitude and longitude with an accuracy of 100 meters.

+37.343123, -122.017593, +65.000000

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About functions

About formulas

LocationValues