The Locator component can be used to find your whereabouts on the planet using either your device's GPS or information from your network.
Create a Locator object using the CreateLocator method of the app object:
Provider can be "GPS", or "Network" or "GPS,Network"
"Network" means get the location from the cell network and wifi, "GPS" tells the locator to use the device's GPS
The SetOnChange method is used to set a function to be called when your calculated position changes.
The Start method starts the object calculating your position.
Once the Start method has been called, the OnChange callback function is the best place to check your position.
The callback function provides a single argument pos which has the following properties
See 'CreateLocator for more informations and a complete function list