GeolocationPosition#
Added in version 2.26.
- class GeolocationPosition(**kwargs)#
An opaque struct to provide position updates to a GeolocationManager
.
WebKitGeolocationPosition is an opaque struct used to provide position updates to a
GeolocationManager
using update_position()
.
Constructors#
- class GeolocationPosition
- classmethod new(latitude: float, longitude: float, accuracy: float) GeolocationPosition #
Create a new
GeolocationPosition
.Added in version 2.26.
- Parameters:
latitude – a valid latitude in degrees
longitude – a valid longitude in degrees
accuracy – accuracy of location in meters
Methods#
- class GeolocationPosition
- free() None #
Free the
GeolocationPosition
Added in version 2.26.
- set_altitude(altitude: float) None #
Set the
position
altitude.Added in version 2.26.
- Parameters:
altitude – altitude in meters
- set_altitude_accuracy(altitude_accuracy: float) None #
Set the accuracy of
position
altitude.Added in version 2.26.
- Parameters:
altitude_accuracy – accuracy of position altitude in meters
- set_heading(heading: float) None #
Set the
position
heading.Set the
position
heading, as a positive angle between the direction of movement and the North direction, in clockwise direction.Added in version 2.26.
- Parameters:
heading – heading in degrees