New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@etomon/etomon-location

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@etomon/etomon-location

Client/Server library for querying locations

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

Etomon Location

Etomon Location provides a client/server for getting location information (like country code, or timezone) given inputs like coordinates (lat/lng), a keyword (like "New York City"), or an IP Address.

The project provides the address resolver (api/server/GeoResolver) along with express routes (api/server/routes) that expose both a REST interface, and a JSON RPC interface to interact with the library remotely.

A client implementation is also provided (api/client/GeoClient) that runs in the browser.

Requirements

This library has two external dependencies

  • Access to the Google Places, Geocoding, Timezone and Autocomplete APIs. This service is not free.
  • The Maxmind GeoIP City database, which is available for free with registration.

The Places API is needed to make sense of addresses and coordinates, the Geocoding API for timezone data, the Autocomplete API for places autocomplete, and GeoIP to get location data from IP addresses.

Caching

An instance of LevelUp can be passed into the GeoResolver constructor to cache results. This practice is disallowed by the Google Places API Terms of Service. The functionality is included for testing purposes only, using it in production violates the Google Places API Terms of Service.

Documentation

Documentation can be generated by running npm run docs and opening docs/index.html or by visiting the GitHub pages for this project.

Testing

Tests are written in mocha, run with npm test.

You'll need to set the GOOGLE_API_KEY and GEO_IP_CITY_PATH env variables with the resources described above.

License

This project is licensed under the GNU LGPL-3.0 a copy of which can be found in LICENSE.txt.

FAQs

Package last updated on 30 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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