What3Words is a giant grid comprised of 57 trillion 3m x 3m squares that cover the entire globe. It is the simplest way to communicate location.
This script reads the Lat and Long from an image and uses What3Words API to determine the What3Words address for where the image was taken.
- Latitude as decimal
- Longitude as decimal
- Location as What3Words.
I was interest to see would allow for grouping of images by location. GPS data can be a little too accurate for grouping, I.E. all images in a single location. What3Words essentially rounds all values to to a 3mx3m.
Note, this scripts uses an external API provided by What3Words. To use this API you will need to register (its free), create a developer ApiKey What3Words Register and add it to your DOpus config.
I did have a key in the script but was asked to remove it by a What3Words representative. As I can not store the key in the script without making it public which they did not like.
WhatThreeWords.js.txt Version 0.3 (9.8 KB)
WhatThreeWords.js.txt Version 0.2 (9.4 KB)