3.5 <WebKitGeolocationPosition>

Structure: <WebKitGeolocationPosition>

An opaque struct to provide position updates to a <WebKitGeolocationManager>.

WebKitGeolocationPosition is an opaque struct used to provide position updates to a <WebKitGeolocationManager> using geolocation-manager:update-position.

Procedures

Method: geolocation-position:copy self ⇒ %return
Method: copy self ⇒ %return

Make a copy of the <WebKitGeolocationPosition>.

self

Passed: a <WebKitGeolocationPosition>.

a <WebKitGeolocationPosition>

%return

Returned: a <WebKitGeolocationPosition>.

a copy of self

Method: geolocation-position:free self
Method: free self

Free the <WebKitGeolocationPosition>

self

Passed: a <WebKitGeolocationPosition>.

a <WebKitGeolocationPosition>

Procedure: geolocation-position:new latitude longitude accuracy ⇒ %return

Create a new <WebKitGeolocationPosition>.

latitude

Passed: a real number.

a valid latitude in degrees

longitude

Passed: a real number.

a valid longitude in degrees

accuracy

Passed: a real number.

accuracy of location in meters

%return

Returned: a <WebKitGeolocationPosition>.

a newly created <WebKitGeolocationPosition>

Method: geolocation-position:set-altitude self altitude
Method: set-altitude self altitude

Set the self altitude.

self

Passed: a <WebKitGeolocationPosition>.

a <WebKitGeolocationPosition>

altitude

Passed: a real number.

altitude in meters

Method: geolocation-position:set-altitude-accuracy self altitude-accuracy
Method: set-altitude-accuracy self altitude-accuracy

Set the accuracy of self altitude.

self

Passed: a <WebKitGeolocationPosition>.

a <WebKitGeolocationPosition>

altitude-accuracy

Passed: a real number.

accuracy of position altitude in meters

Method: geolocation-position:set-heading self heading
Method: set-heading self heading

Set the self heading.

Set the self heading, as a positive angle between the direction of movement and the North direction, in clockwise direction.

self

Passed: a <WebKitGeolocationPosition>.

a <WebKitGeolocationPosition>

heading

Passed: a real number.

heading in degrees

Method: geolocation-position:set-speed self speed
Method: set-speed self speed

Set the self speed.

self

Passed: a <WebKitGeolocationPosition>.

a <WebKitGeolocationPosition>

speed

Passed: a real number.

speed in meters per second

Method: geolocation-position:set-timestamp self timestamp
Method: set-timestamp self timestamp

Set the self timestamp.

By default it’s the time when the self was created.

self

Passed: a <WebKitGeolocationPosition>.

a <WebKitGeolocationPosition>

timestamp

Passed: an unsigned 64-bit integer.

timestamp in seconds since the epoch, or 0 to use current time