what3words / w3w-node-wrapper

Node wrapper for the What3Words API
https://docs.what3words.com/api/v3/
MIT License
45 stars 10 forks source link

[TT-6297] Only call autosuggest-selection for w3w whitelisted domains #26

Closed c5haw closed 3 years ago

c5haw commented 3 years ago

Background

Turns out that the Enterprise API that is distributed to clients to run their own w3w API infrastructure does not include the autosuggest-selection endpoint. In order to fix 404s that are thrown in this use case I have added a whitelist of domains that support this call otherwise it just does nothing.