Details of a Locality
GET
https://api.woosmap.com/localities/details
Provides details of an autocomplete suggestion (using the suggestion’s public_id).
Authorization
Query Parameters
Response
Details Localities successfully retrieved
result
object
Show 9 propertiesHide 9 properties
Show 4 propertiesHide 4 properties
Show 2 propertiesHide 2 properties
Show 2 propertiesHide 2 properties
Show 3 propertiesHide 3 properties
Show 2 propertiesHide 2 properties
Show 4 propertiesHide 4 properties
Show 2 propertiesHide 2 properties
curl -L 'https://api.woosmap.com/localities/details?public_id=TVZaV0JmR1pRbkFRbjlKdEU5Q0paamdlQjRRPV9fTVZaV0JmR1pRbkFRbjlKdEU5Q0paamdlQjRRPQ%3D%3D&key=YOUR_PUBLIC_API_KEY' \
-H 'Referer: http://localhost'
const requestOptions = {
method: "GET",
redirect: "follow"
};
fetch("https://api.woosmap.com/localities/details?public_id=TVZaV0JmR1pRbkFRbjlKdEU5Q0paamdlQjRRPV9fTVZaV0JmR1pRbkFRbjlKdEU5Q0paamdlQjRRPQ%3D%3D&key=YOUR_PUBLIC_API_KEY", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
import requests
url = "https://api.woosmap.com/localities/details?public_id=TVZaV0JmR1pRbkFRbjlKdEU5Q0paamdlQjRRPV9fTVZaV0JmR1pRbkFRbjlKdEU5Q0paamdlQjRRPQ%3D%3D&key=YOUR_PUBLIC_API_KEY"
payload = {}
headers = {
'Referer': 'http://localhost'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
{
"result": {
"public_id": "TVZaV0JmR1pRbkFRbjlKdEU5Q0paamdlQjRRPV9fTVZaV0JmR1pRbkFRbjlKdEU5Q0paamdlQjRRPQ==",
"types": [
"address"
],
"formatted_address": "House Of Commons, Houses Of Parliament, London, SW1A 0AA",
"geometry": {
"location": {
"lat": 51.4998415,
"lng": -0.1246375
},
"accuracy": "ROOFTOP"
},
"address_components": [
{
"types": [
"country",
"administrative_area_level_0",
"division_level_0"
],
"long_name": "United Kingdom",
"short_name": "GB"
},
{
"types": [
"state",
"division_level_1"
],
"long_name": "England",
"short_name": "England"
},
{
"types": [
"administrative_area_level_1",
"county",
"division_level_2"
],
"long_name": "City of London",
"short_name": "City of London"
},
{
"types": [
"district",
"division_level_3"
],
"long_name": "Westminster",
"short_name": "Westminster"
},
{
"types": [
"locality"
],
"long_name": "London",
"short_name": "London"
},
{
"types": [
"postal_codes"
],
"long_name": "SW1A 0AA",
"short_name": "SW1A 0AA"
},
{
"types": [
"premise"
],
"long_name": "Houses Of Parliament",
"short_name": "Houses Of Parliament"
},
{
"types": [
"organisation"
],
"long_name": "House Of Commons",
"short_name": "House Of Commons"
}
]
}
}
{
"result": {
"public_id": "QaCU+fBtigK65ztSrqHqUoUDwZw=",
"types": [
"postal_code"
],
"formatted_address": "SW1A 0AA, City of London",
"name": "SW1A 0AA",
"geometry": {
"location": {
"lat": 51.499842,
"lng": -0.124638
},
"accuracy": "GEOMETRIC_CENTER"
},
"address_components": [
{
"types": [
"country",
"administrative_area_level_0",
"division_level_0"
],
"long_name": "United Kingdom",
"short_name": "GB"
},
{
"types": [
"state",
"division_level_1"
],
"long_name": "England",
"short_name": "England"
},
{
"types": [
"administrative_area_level_1",
"county",
"division_level_2"
],
"long_name": "City of London",
"short_name": "City of London"
},
{
"types": [
"district",
"division_level_3"
],
"long_name": "Westminster",
"short_name": "Westminster"
},
{
"types": [
"postal_codes"
],
"long_name": "SW1A 0AA",
"short_name": "SW1A 0AA"
}
],
"addresses": {
"pagination": {
"page": 1,
"page_count": 1,
"addresses_per_page": 1,
"address_count": 1
},
"list": [
{
"public_id": "TVZaV0JmR1pRbkFRbjlKdEU5Q0paamdlQjRRPV9fTVZaV0JmR1pRbkFRbjlKdEU5Q0paamdlQjRRPQ==",
"description": "House Of Commons, Houses Of Parliament London, SW1A 0AA"
}
]
}
}
}
{
"detail": "Incorrect authentication credentials. Please check or use a valid API Key"
}
{
"detail": "This Woosmap API is not enabled for this project."
}
{
"detail": "The rate limit for this endpoint has been exceeded"
}