awesome-cordova-plugins/dist/plugins/geolocation.d.ts
2016-02-05 15:06:03 -06:00

22 lines
456 B
TypeScript

/**
* Get geolocation data.
*
* @usage
* ```js
* Geolocation.getCurrentPosition().then((resp) => {
* //resp.coords.latitude
* //resp.coords.longitude
* })
*
* let watch = Geolocation.watchPosition();
* watch.source.subscribe((data) => {
* //data.coords.latitude
* //data.coords.longitude
* })
* ```
*/
export declare class Geolocation {
static getCurrentPosition(options: any): void;
static watchPosition(options: any): void;
}