npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

com.outsystems.plugins.geolocation

v1.2.0

Published

Geolocation plugin for Cordova

Readme

GeolocationPlugin-Cordova

This plugin is SUPPORTED by OutSystems. Customers entitled to Support Services may obtain assistance through Support.

Installation

cordova plugin add <path-to-repo-local-clone>

API

getCurrentPosition(...)

getCurrentPosition(options: CurrentPositionOptions, success: (output: Position) => void, error: (error: PluginError) => void) => void

Get the current GPS location of the device

| Param | Type | | ------------- | ------------------------------------------------------------------------- | | options | CurrentPositionOptions | | success | (output: Position) => void | | error | (error: PluginError) => void |

Since: 1.0.0


watchPosition(...)

watchPosition(options: WatchPositionOptions, success: (output: Position) => void, error: (error: PluginError) => void) => void

Set up a watch for location changes. Note that watching for location changes can consume a large amount of energy. Be smart about listening only when you need to.

| Param | Type | | ------------- | ----------------------------------------------------------------------- | | options | WatchPositionOptions | | success | (output: Position) => void | | error | (error: PluginError) => void |

Since: 1.0.0


clearWatch(...)

clearWatch(options: ClearWatchOptions, success: () => void, error: (error: PluginError) => void) => void

Clear a given watch

| Param | Type | | ------------- | ----------------------------------------------------------------------- | | options | ClearWatchOptions | | success | () => void | | error | (error: PluginError) => void |

Since: 1.0.0


hasNativeTimeoutHandling(...)

hasNativeTimeoutHandling(success: (value: boolean) => void, error: (error: PluginError) => void) => void

Returns true if the plugin version supports native timeout handling.

| Param | Type | | ------------- | ----------------------------------------------------------------------- | | success | (value: boolean) => void | | error | (error: PluginError) => void |

Since: 1.2.0


Type Aliases

CurrentPositionOptions

{ /** * High accuracy mode (such as GPS, if available) * * On Android 12+ devices it will be ignored if users didn't grant * ACCESS_FINE_LOCATION permissions (can be checked with location alias). * * @default false * @since 1.0.0 / enableHighAccuracy?: boolean; /* * The maximum wait time in milliseconds for location updates. * * In Android, since version 4.0.0 of the plugin, timeout gets ignored for getCurrentPosition. * * @default 10000 * @since 1.0.0 / timeout?: number; /* * The maximum age in milliseconds of a possible cached position that is acceptable to return * * @default 0 * @since 1.0.0 / maximumAge?: number; /* * The minumum update interval for location updates. * * If location updates are available faster than this interval then an update * will only occur if the minimum update interval has expired since the last location update. * * This parameter is only available for Android. It has no effect on iOS or Web platforms. * * @default 5000 * @since 1.0.0 / minimumUpdateInterval?: number; /* * This option applies to Android only. * * Whether to fall back to the Android framework's LocationManager in case Google Play Service's location settings checks fail. * This can happen for multiple reasons - e.g. device has no Play Services or device has no network connection (Airplane Mode) * If set to false, failures are propagated to the caller. * Note that LocationManager may not be as effective as Google Play Services implementation. * If the device's in airplane mode, only the GPS provider is used, which may take longer to return a location, depending on GPS signal. * This means that to receive location in such circumstances, you may need to provide a higher timeout. * * @default true * @since 1.1.0 */ enableLocationFallback?: boolean }

Position

{ /** * Creation timestamp for coords * * @since 1.0.0 / timestamp: number; /* * The GPS coordinates along with the accuracy of the data * * @since 1.0.0 / coords: { /* * Latitude in decimal degrees * * @since 1.0.0 / latitude: number; /* * longitude in decimal degrees * * @since 1.0.0 / longitude: number; /* * Accuracy level of the latitude and longitude coordinates in meters * * @since 1.0.0 / accuracy: number; /* * Accuracy level of the altitude coordinate in meters, if available. * * Available on all iOS versions and on Android 8.0+. * * @since 1.0.0 / altitudeAccuracy: number | null; /* * The altitude the user is at (if available) * * @since 1.0.0 / altitude: number | null; /* * The speed the user is traveling (if available) * * @since 1.0.0 / speed: number | null; /* * The heading the user is facing (if available). * * Historically, this field returned the direction of travel (course) on iOS and Android. * It now prioritizes the compass heading (true or magnetic) if available, falling back * to the direction of travel (course). * * Only available when using watchPosition. * * @since 1.0.0 / heading: number | null; /* * The heading (measured in degrees) relative to magnetic north. * * Only available when using watchPosition. * * @since 1.2.0 / magneticHeading?: number | null; /* * The heading (measured in degrees) relative to true north. * * Only available when using watchPosition. * * @since 1.2.0 / trueHeading?: number | null; /* * The maximum deviation (measured in degrees) between the reported heading and the true geomagnetic heading. * * Only available when using watchPosition. * * @since 1.2.0 / headingAccuracy?: number | null; /* * The direction in which the device is travelling, measured in degrees and relative to due north. * * Only available when using watchPosition. * * @since 1.2.0 */ course?: number | null; }; }

PluginError

{ code: string, message: string }

WatchPositionOptions

CurrentPositionOptions & ClearWatchOptions

ClearWatchOptions

{ id: string; }