BUI logo BBjGeolocationEvent::getSpeed

Description

In BBj 11.0 and higher, this method returns the speed in meters per second.

Syntax

Return Value

Method

double

getSpeed()

Parameters

None.

Return Value

The "speed" attribute denotes the current ground speed of the hosting device and is specified in meters per second. If the implementation cannot provide speed information, the value of this attribute must be null. Otherwise, the value of the speed attribute must be a non-negative real number.

Remarks

Multiply by 3.6 to convert to km/h. Multiply by ~2.237 to convert to mph. For example, a reported speed value of 25 m/s corresponds to 90 km/h, or about 56 mph.

Example

See Also

BBjAPI

BBj Object Syntax

BBj Object Diagram for an illustration of the relationship between BBjObjects.

Geolocation API Specification