OnLocationChange - cWebGeoLocation

Event triggered on location changes when using continuous tracking

Type: Event

Parameters: Number nLatitude Number nLongitude Number nAccuracy Number nSpeed Number nHeading

ParameterDescription
nLatitudeNumber representing the position's latitude in decimal degrees.
nLongitudeNumber representing the position's longitude in decimal degrees.
nAccuracyIndicates the accuracy of the provided position in meters (0 if unknown).
nSpeedIndicates the velocity in meters per second (0 if unknown).
nHeadingNumber 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.