StartGeolocation()

Syntax

StartGeolocation([Timeout [, HighAccuracy]])
Description
Starts geolocation data monitoring.

Parameters

Timeout (optional) The maximum timeout (in milliseconds) to have valid geolocation data. If no data can be updated during this period, all geolocation functions will return the error value. This can be useful where up-to-date geolocation information is mandatory (e.g. for a car navigation application). If not specified, no timeout is set.
HighAccuracy (optional) If set to #True, enable the use of real GPS if available, and fallback to Wi-Fi or other less accurate methods if not found. Default value is #False, which only use Wi-Fi or less accurate methods for geolocation.

Return value

None. @remark When Safari is used to access the app (on OSX or iOS), it requires the web app to be hosted using HTTPS protocol (geolocation is considered as sensitive information). If not, it won't work.

See Also

StopGeolocation(), AccelerometerY(), AccelerometerZ(), AccelerometerTime()

Supported OS

All

<- GeolocationTime() - Geolocation Index - StopGeolocation() ->