Location
Returns the current latitude and longitude on an iOS or iPadOS device running FileMaker Go, and their accuracy.
Format
Location ( accuracy {; timeout } )
Parameters
accuracy
- any numeric expression or field containing a number that represents the requested accuracy 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 version
12.0
Description
This function returns the current latitude, longitude, and achieved accuracy on a device running FileMaker Go. The location is obtained via GPS, cellular network, or Wi-Fi.
Returns and caches the location of a device in the format latitude, longitude, accuracy
. You can use the values that are returned to query map services. The Location function returns the horizontal accuracy achieved 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, 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 a requested accuracy of 100 meters (the achieved accuracy was 65 meters).
+37.343123, -122.017593, +65.000000