📜 ⬆️ ⬇️

Node-RED node for converting locations into 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 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 an address of three words, you will need:



or


To convert an address from 3 words into a location, you will need:



An example from the 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 at npmjs.com .

Source: https://habr.com/ru/post/263651/


All Articles