Suburb - Shapes
Hazard-overlay polygons by layer
GET
/v1/suburbs/{suburb_name}/shapes/hazards20¢ per callHazard polygons for one layer, clipped to the suburb boundary (empty collection = hazard not present).
Price: 20¢ per call.
Authorization
Request
The only values you send. Fields under Responses below are what comes back — you never pass those.
Path parameters
suburb_namestringrequiredQuery parameters
layerstringrequiredHazard layer to return.
Responses
Successful Response
application/json
SuburbHazardsfields returned to you
area_namestringalways returnedCanonical ABS SAL name.
area_levelstringalways returnedAlways 'suburb'.
layerstringalways returnedThe hazard layer requested.
countintegeralways returnedNumber of hazard polygons returned (0 = none of this hazard here).
geojsonobjectalways returnedGeoJSON FeatureCollection — hazard polygons clipped to the suburb boundary. Feature properties: `category` + `name` (per hazard layer), `tier` (acid-sulfate), none (landslide).
GET
/v1/suburbs/{suburb_name}/shapes/hazardscURL
curl --request GET \
--url 'https://api.microburbs.com.au/v1/suburbs/Belmont%20North/shapes/hazards?layer=bushfire' \
--header 'Authorization: Bearer test'Example Responses
{
"data": {
"area_level": "suburb",
"area_name": "Belmont North",
"count": 36,
"geojson": {
"features": [
{
"geometry": {
"coordinates": [
[
[
151.66,
-32.99
],
[
151.67,
-32.99
],
[
151.67,
-33
],
[
151.66,
-32.99
]
]
],
"type": "Polygon"
},
"properties": {
"category": "High Potential Bushfire Intensity"
},
"type": "Feature"
}
],
"type": "FeatureCollection"
},
"layer": "bushfire"
}
}Successful Response200
application/json
