|
|
|
|
|
- Special cases
- Required permissions
- Browsers allowing the geolocation
GPSLastPosition (Function) In french: GPSDernièrePosition Retrieves the information about the last known location of the device.
pos is geoPosition
pos = GPSLastPosition()
IF ErrorOccurred = False THEN
Info(" Latitude : " + pos.Latitude)
Info(" Longitude : " + pos.Longitude)
END
Syntax
<Result> = GPSLastPosition()
<Result>: geoPosition variable Name of the geoPosition variable. This variable contains the information about the last known device position. To find out whether the position failed to be retrieved, use the ErrorOccurred variable. Remarks Special cases - To determine if a value was assigned to the Speed, Accuracy, Direction or Altitude properties of a geoPosition variable when the location was retrieved, use the SpeedValid, AccuracyValid, DirectionValid and AltitudeValid properties.
    To reinitialize a geoPosition variable, use VariableReset.     It is recommended to reset the parameters of the location provider with GPSInitParameter before retrieving a location. - The positioning information retrieved corresponds to the device's last known position: it may therefore not correspond to the device's current position if, for example, the device has been moved while the GPS signal was invalid.
    You can use the MeasurementDate property of the geoPosition variable to determine the date and time at which the position was calculated.     Speed, Accuracy, Direction and Altitude will be specified only if the location provider allows it (otherwise, these properties will take their default value). The location provider can be configured with GPSInitParameter.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|