QueryLocation - cWebGeoLocation
Performs a single location request (asynchronous)
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| hmCallbackMsg | Handle | Handle of the Callback message |
| hoCallbackObject | Handle | Handle of the Callback object |
Syntax
Procedure QueryLocation Handle hmCallbackMsg Handle hoCallbackObject
Call Example
Send QueryLocation hmCallbackMsg hoCallbackObject
Description
Performs a single location request (asynchronous).
The passed callback message should be published using WebPublishProcedure and is expected to have the following signature:
Procedure GeoQuery_Callback Integer iErr Number nLatitude Number nLongitude Number nAccuracy Number nSpeed Number nHeading
Sample
Procedure GeoQuery_Callback Integer iErr Number nLatitude Number nLongitude Number nAccuracy Number nSpeed Number nHeading
If (not(iErr)) Begin
Send ShowInfoBox (SFormat("Lat: %1 Long: %2 Acc: %3 Speed: %4 Head: %5", nLatitude, nLongitude, nAccuracy, nSpeed, nHeading))
End
End_Procedure
WebPublishProcedure GeoQuery_Callback
Procedure OnClick
Send QueryLocation of oWebGeoLocation1 (RefProc(GeoQuery_Callback)) Self
End_Procedure