// Type definitions for ngCordova geolocation plugin // Project: https://github.com/driftyco/ng-cordova // Definitions by: Kapil Sachdeva // Definitions: https://github.com/ksachdeva/DefinitelyTyped /// declare module ngCordova { export interface IGeoPositionError { code:number; message:string; } export interface IGeoCoordinates { latitude?:number; longitude?:number; accuracy?:number; altitude?:number; heading?:number; speed?:number; altitudeAccuracy?:number; } export interface IGeoPosition { coords:IGeoCoordinates; timestamp:Date; } export interface IGeolocationOptions { timeout?: number; maximumAge?: number; enableHighAccuracy?: boolean; } export interface IGeolocationService { getCurrentPosition(options?: IGeolocationOptions) : ng.IPromise; watchPosition(options?: IGeolocationOptions) : ng.IPromise; clearWatch(watchID: {[key: string]: any}) : void; } }