Socket
Book a DemoInstallSign in
Socket

what3words-tools

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

what3words-tools

This is an unofficial set of tools around what3words API.

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
1
Created
Source

what3words-tools

This is an unofficial set of tools around what3words API.

Build Status code style: prettier

usage

Set up environment :

$ export W3W_API_KEY=<YOUR-W3W-API-KEY>

and for the whereis operation:

$ export GOOGLE_API_KEY=<YOUR-GOOGLE-API-KEY>

Install globally:

$ npm install -g what3words-tools

alternative

$ npm install what3words-tools

then access the CLI by adding the path : ./node_modules/.bin/

and API key can be added at the API level or as input parameters for CLI

CLI

$ what3words-tools languages
$ what3words-tools languages --w3w-key <YOUR-W3W-API-KEY>

$ what3words-tools geocode --addr index.home.raft
$ what3words-tools geocode --coords 51.521251,-0.203586

$ what3words-tools whereis --addr index.home.raft
$ what3words-tools whereis --addr index.home.raft --w3w-key <YOUR-W3W-API-KEY> --google-key <YOUR-GOOGLE-API-KEY>

API

TODO

see examples in samples folder

Build and test

setup

clone the repository

$ npm i

unit tests

$ npm test

coverage

$ npm run coverage

report is available with :

$ open coverage/lcov-report/index.html

Contributing

Anyone and everyone is welcome to contribute.

Issues

Find a bug or want to request a new feature? Please let me know by submitting an issue.

Licensing

Licensed under the MIT License

A copy of the license is available in the repository's LICENSE file.

FAQs

Package last updated on 28 Jan 2018

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