StartGeolocation()

Syntax

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

Parameters

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

Return value

None. @remark When Safari is used to access the app (on OSX or iOS), it requiers 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() ->