Watching for change in location
Using the watchPosition function, you can constantly watch and get notification whenever the location of the device changes.
- returns – watchID (String)
- callback (function), options (object)
<cffunction access="public" name="watchpos" returntype="void" >
Note: We have used alert() in the above example. alert() may not work on iOS devices.