Apache Cordova Plugin geolocation. Contribute to apache/cordova-plugin-geolocation development by creating an account on GitHub.

that is:

navigator.geolocation.getCurrentPosition(geolocationSuccess,
[geolocationError],
[geolocationOptions]);
Parameters
geolocationSuccess: The callback that is passed the current position.
geolocationError: (Optional) The callback that executes if an error occurs.
geolocationOptions: (Optional) The geolocation options.