Node-RED node for converting locations to what3words addresses

The node-red-node-what3words package is available for installation using npm . It is designed to convert geolocation to what3words and vice versa. If you already have a key for what3words API, you can proceed with the installation.
Installation
To install, you will need to run the following command in the root directory of your Node-RED:
npm install node-red-node-what3words
You can get a valid API key on the what3words developers page . It will be stored in a separate file.
Using
To convert a location to a three-word address, you will need:
- msg.location.lat
- msg.location.lon
or
- msg.payload with string lat, lon
To convert an address from 3 words to a location, you will need:
- msg.payload containing three unique words
Example from user dceejay on npmjs.com:
[{"id":"f38eba15.0c7148","type":"inject","name":"","topic":"","payload":"calibrate.newlyweds.switched","payloadType":"string","repeat":"","crontab":"","once":false,"x":646,"y":319,"z":"cf058368.30fa8","wires":[["22d6b2a5.dd294e"]]},{"id":"22d6b2a5.dd294e","type":"what3words","title":"","name":"","x":881,"y":317,"z":"cf058368.30fa8","wires":[["9caf8aa8.635078"]]},{"id":"9caf8aa8.635078","type":"debug","name":"","active":true,"console":false,"complete":"true","x":1077,"y":315,"z":"cf058368.30fa8","wires":[]}]
All changes can be tracked on the package page on npmjs.com .