GeoLocatorByCoord (FB)¶
FUNCTION_BLOCK GeoLocatorByCoord EXTENDS APICaller
Requests geo location information from the API Server by using a GPS coordinate in decimal degrees format (DD).
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xExecute
BOOL
Rising edge: Starts defined operationFALSE
: Resets the defined operation after ready condition was reachedETrig
Output
xDone
BOOL
TRUE
: Ready condition reachedETrig
xBusy
BOOL
TRUE
: Operation is runningETrig
xError
BOOL
TRUE
: Error condition reachedETrig
Input
sApiKey
Output
eError
sConstructedUrl
Contains the internally constructed URL, that is used to retrieve data from the API Server.
xUrlConstructed
BOOL
Is TRUE, when the content of sConstructedUrl is valid (after the internal URL Construction is finished).
Input
sLatitude
sLongitude
sLanguageCode
‘’
Optional ISO 3166 country code to extract a local city name in the specifiec language, if available.
Inout
geoLocation
Methods:
CallAPI, inherited from APICaller
CheckGeoLocationParam, inherited from APICaller
CleanupAction, inherited from APICaller
CyclicAction, inherited from APICaller
ProcessResponse, inherited from APICaller
ResetAction, inherited from APICaller
StartProcessResponse, inherited from APICaller
Structure: