A Geolocation object dispatches GeolocationEvent objects when it receives updates from the location sensor installed on the device. 


Inherited from Event.


Lib.Media.Events.GeolocationEvent.UPDATE

String = "update"


Event object has properties:

altitude

The altitude in meters.

heading

The direction of movement (with respect to true north) in integer degrees. This is not the same as "bearing", which returns the direction of movement with respect to another point.


Note: On Android devices, heading is not supported.

horizontalAccuracy

The horizontal accuracy in meters. 

latitude

The latitude in degrees. The latitude values have the following range: (-90 <= latitude <= 90). Negative latitude is south and positive latitude is north. 

longitude

The longitude in degrees. The longitude values have the following range: (-180 <= longitude < 180). Negative longitude is west and positive longitude is east. 

speed

The speed in meters/second. 

timestamp

The number of milliseconds at the time of the event since the object was initialized. For example, if the device captures geolocation data 4 seconds after the object initializes, then the timestamp property of the event is set to 4000

verticalAccuracy

The vertical accuracy in meters. 

provider

location provider, network, gps, etc. (on android only)


Created with the Personal Edition of HelpNDoc: iPhone web sites made easy