Packageorg.apache.cordova.geolocation
Classpublic class Geolocation
InheritanceGeolocation Inheritance Object

Geolocation provides the interface to the Cordova Geolocation plugin.



Public Methods
 MethodDefined By
  
Constructor
Geolocation
  
getCurrentPosition(onSuccess:Function, onError:Function):void
Gets the device current location.
Geolocation
Constructor Detail
Geolocation()Constructor
public function Geolocation()

Constructor

Method Detail
getCurrentPosition()method
public function getCurrentPosition(onSuccess:Function, onError:Function):void

Gets the device current location. If successful, the onSuccess function is called with position parameter (see Cordova documentation). If failure, the onError function is called with an error parameter (.code and .message members).

Parameters

onSuccess:Function
 
onError:Function