Built-in front calls / Genero Mobile common front calls |
Returns the Global Positioning System (GPS) location of a mobile device.
ui.Interface.frontCall("mobile", "getGeolocation", [], [status, latitude, longitude] )
The "getGeolocation" front call returns the current location of the mobile device, based on the current GPS information.
The returned coordinates should be stored in FLOAT variables.
If the device location cannot be found within a given period, the front call returns an error status.
DEFINE status STRING, latitude, longitude FLOAT CALL ui.Interface.frontCall("mobile", "getGeolocation", [], [status, latitude, longitude] ) MESSAGE SFMT( "Geo location: (status=%1) Latitude=%2 Longitude=%3", status, latitude, longitude )