Autosuggest
GET
https://api.woosmap.com/what3words/autosuggest
AutoSuggest can take a slightly incorrect 3 word address and suggest a list of valid 3 word addresses. It has powerful features that can, for example, optionally limit results to a country or area, and prioritise results that are near the user.
Rate limit: 20/1s
Ratelimit: 20/1s
Authorization
Query Parameters
input
string required
focus
object
clip-to-country
object
clip-to-bounding-box
object
clip-to-circle
object
clip-to-polygon
object
input-type
string Defaults to
text prefer-land
boolean Defaults to
true language
object
Response
Successful Response
suggestions
object[] required
Show 6 propertiesHide 6 properties
Errors
401
Unable to locate credentials.
application/json
detail
string required
402
Out of free quota.
application/json
detail
string required
403
Credentials found, but not matching.
application/json
detail
string required
422
Validation Error
429
Rate limit reached
application/json
details
string required
curl -L -X GET 'https://api.woosmap.com/what3words/autosuggest?input=couch.spotted.am&clip-to-country=fr&key=YOUR_PUBLIC_API_KEY' \
-H 'Referer: http://localhost'
import requests
url = "https://api.woosmap.com/what3words/autosuggest?input=couch.spotted.am&clip-to-country=fr&key=YOUR_PUBLIC_API_KEY"
payload={}
headers = {
'Referer': 'http://localhost'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
fetch("https://api.woosmap.com/what3words/autosuggest?input=couch.spotted.am&clip-to-country=fr&key=YOUR_PUBLIC_API_KEY", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"suggestions": [
{
"country": "FR",
"distanceToFocusKm": 4,
"language": "en",
"nearestPlace": "Paris",
"rank": 1,
"words": "couches.spotted.alas"
},
{
"country": "FR",
"distanceToFocusKm": 8,
"language": "en",
"nearestPlace": "Paris",
"rank": 2,
"words": "couches.spotted.atom"
},
{
"country": "FR",
"distanceToFocusKm": 30,
"language": "en",
"nearestPlace": "Pontcarré, Seine-et-Marne",
"rank": 3,
"words": "couch.spotted.boat"
},
{
"country": "FR",
"distanceToFocusKm": 27,
"language": "en",
"nearestPlace": "Triel-sur-Seine, Yvelines",
"rank": 4,
"words": "vouch.spotted.dare"
}
]
}