mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
22 lines
456 B
TypeScript
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;
|
|
}
|