Hey. Since I have not found a (working) extension to use what3words, I have searched and found another way. Maybe it helps the one or the other. So let’s start!
Create API-Key:
- First of all create an account or log in to what3words:
Account | what3words - Now under “Overview” we can create a new API key. Just click on the button in the upper right corner.
- Now fill in all the data (project name and a small description) and then click on “Generate API key”
Note: Converting latitude and longitude to what3words address is unlimited free! (Fair usage policy applies) Learn more here: Select plan | what3words
That’s it - at least for the API key.
The blocks
- Just add the “Web” component. That’s enough.
- Now set the URL. Consist of the following parts:
https://api.what3words.com/v3/convert-to-3wa?key=YOUR-KEY&coordinates=lat,long&language=your-language-code
- Then use “Get Text” and the corresponding method “Got Text”. If the response code is “200”, it means that the request/query was successful. Now set a variable and assign it the value from the JSON Text Decode - as in the picture. Then we have to search for the three-word address in the received text with the keyword “words”.
And you’re done!