Skip to content

OnLocationChange - cWebGeoLocation

Event triggered on location changes when using continuous tracking

Type: Event

Parameters

Parameter Type Description
nLatitude Number Number representing the position's latitude in decimal degrees.
nLongitude Number Number representing the position's longitude in decimal degrees.
nAccuracy Number Indicates the accuracy of the provided position in meters (0 if unknown).
nSpeed Number Indicates the velocity in meters per second (0 if unknown).
nHeading Number Number indicating the direction towards the device facing (0 if unknown).

Syntax

Procedure OnLocationChange Number nLatitude Number nLongitude Number nAccuracy Number nSpeed Number nHeading

Description

The cWebGeoLocation class supports continuous tracking of the location, which means that the browser is asked to provide updates when the location changes.

Continuous tracking can be turned on and off by using the pbTracking, pbAutoStart, pbAutoStop properties or the Start & Stop procedures. The piMinTimeout and piMaxTimeout properties limit the interval with which this event is triggered.