Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

geolocator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geolocator - npm Package Versions

2.1.5

Diff

Changelog

Source

2.1.5 (2019-01-09)

Fixed

  • An issue where locateByIP() method would fail due to external service being shut down. Added a new (default) Geo-IP service provider to GeoJS with HTTPS support.
  • An issue where XHR request handlers would not be invoked in IE9.

Changed

  • getIP() method now uses XHR request instead of JSONP, since CORS is supported by the service.
  • Added ability fetch location-by-IP data via XHR. (Set xhr to true when passing a new Geo-IP source to setGeoIPSource() method.)
  • Default value for timeout option is changed to 6000 for .locate() method.
  • Improved minification and reduced library size.
  • (Dev) Removed grunt in favour of npm scripts. Removed Jasmine in favour of Jest.
onury
published 2.1.3 •

Changelog

Source

2.1.3 (2018-04-02)

Fixed

  • Changed default Geo-IP provider to nekudo/shiny_geoip. (FreeGeoIP service is shut down). Fixes issue #53.
  • An issue with Geo-IP schema, occurred when a function is used instead of a mapper object.

Added

  • Geo IP source: IPStack (requires a free API key). Note that this is a separate file, you can include in your HTML. Or you can use a different provider if you like. See the Caveats section before you do so.
onury
published 2.1.1 •

Changelog

Source

2.1.1 (2017-03-11)

Added

  • Support for hybrid or sandboxed environments (such as Electron). Now, forcing the export mechanism to assign geolocator to window even if it's used via an import or require statement. i.e. this happens when used within babel/webpack bundled code or from within an electron app. See issues #42 and #48.

Changed

  • Minor revision, clean up.
onury
published 2.1.0 •

Changelog

Source

2.1.0 (2016-09-30)

Please read the [API documentation][api-docs].

Added

  • Ability to get static Google Maps (image) via .getStaticMap() method. #34. Make sure you have enabled Google Static Maps API in Google Developers console.
  • Ability to style Google Maps. Either set global styles via geolocator.config() or corresponding methods such as .createMap() or .getStaticMap().

Changed

  • Improved desired accuracy logic. Added maximumWait:Number and onProgress:Function options for .locate() method.
  • Minor revisions, updated dev-dependencies.

Fixed

  • Changed Geo-IP provider to FreeGeoIP. (Wikimedia has shutdown the geo service.) Fixes issue #36.
  • Respecting countries with states, other than US. Fixes #37.
onury
published 2.0.0 •

Changelog

Source

2.0.0 (2016-06-25)

Please read the [API documentation][api-docs].

Added

  • Feature: Watch geographic position.
  • Feature: Locate by mobile information.
  • Feature: Get timezone information. Fixes issue #13.
  • Feature: Get distance matrix and duration information.
  • Feature: Calculate distance between two geographic points.
  • Feature: Various geographic conversion utilities.
  • Feature: Get client IP.
  • Feature: Fetched location includes country flag image (SVG) URL.
  • Feature: Language support (depends on the service provider). Fixes issue #20.
  • Feature: Universal module (CommonJS/Node/AMD..). Fixes issue #16.
  • Support multiple calls. Fixes issue #24.

Changed

  • BREAKING: Method signatures changed for .locate() and .locateByIP() methods.
  • BREAKING: Most features make use of Google APIs. So you'll need a (single) Google API key to use them all. If you don't have a key, you can still use Geolocator like the previous versions, but with limited features.
  • BREAKING: geolocator.location property is dropped. You can always access the result, via the second argument of each async method's callback. See documented examples.
  • Better Geolocation accuracy. Fixes issue #28.
  • Google Maps is no longer loaded by default. Depends on called methods or options.
  • Now, we only support a single Geo-IP source (Wikimedia). Can be set/changed via setGeoIPSource() method.

Fixed

  • An issue with wikimedia IP lookup. Fixes #32.

onury
published 1.2.9 •

Changelog

Source

1.2.9

Added

  • HTTPS secure connection support for IP geo-sources. (Note: GeoPlugin does not support HTTPS. You should use FreeGeoIP or Wikimedia IP sources instead.). (Fixes Issue #11. PR: @iurisilvio)
onury
published 1.2.8 •

Changelog

Source

1.2.8

Added

  • Created [NPM package][npm-package].
  • Created Bower package.

Changed

  • Removed the sensor parameter from Goole Maps loader, since it's not required anymore.
  • Bumped Google Maps version to 3.18.
onury
published 1.2.6 •

Changelog

Source

1.2.6

Added

  • FNew method: isPositionError().

Changed

  • The recent Error or PositionError (HTML5) is passed to error callbacks instead of String error message. See updated documentation. Fixes issue #7. (This shouldn't be a breaking-change but do test your app if you decide to upgrade.)
  • Updated example. (Enable/disable HTML5-to-IP fallback.)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc