|
|
|
|
|
- Managing locks
- Retrieved properties
- Operating mode in iPhone/iPad
- Required permissions
- Required application feature
- Browsers allowing the geolocation
GPSGetPosition (Function) In french: GPSRécupèrePosition Retrieves information about the current device position. MyLocation is géoPosition MyLocation = GPSGetPosition() // Checks the position validity with ErrorOccurred IF ErrorOccurred THEN RETURN Info(" Latitude : " + MyLocation.Latitude) Info(" Longitude : " + MyLocation.Longitude)
Remarks Managing locks GPSGetPosition blocks execution until the current device location is retrieved or until the timeout defined by the <Timeout> parameter expires. If the function is called in the main thread of the application, an hourglass will be displayed during the function execution. The message displayed by the hourglass can be specified via the <Message> parameter. Otherwise, the execution of secondary thread will be locked during the function execution and no hourglass will be displayed. Remark: To find out the last known device position without timeout, use GPSLastPosition. Caution, the positioning information that was retrieved may not correspond to the current device position if the device was moved while the GPS signal was not valid for example. You can use the MeasurementDate property of the geoPosition variable to determine the date and time at which the position was calculated. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|