Last updated on
Apr 27, 2021
|
Also applies to ColdFusion
Getting Geolocation options
You can get the current Geolocation options using the getOptions() function.
Method summary
getOptions()
- returns – An object representing the Options object
- params
- None
For instance,
<cfscript> |
Geolocation Options structure
The Geolocation Options object contains the following parameters:
- enableHighAccuracy (Boolean) - By default, the device attempts to retrieve a position using the network-based methods. Setting this property to true enables ColdFusion to use more accurate methods, such as satellite positioning.
- timeOut (Number) – The maximum time length (milliseconds) that is allowed to pass from the call to getCurrentPosition or watchPosition until the corresponding geolocationSuccess callback gets executed.
- maximumAge (Number) - Accept a cached position whose age is no greater than the specified time in milliseconds.