Suburb - Shapes
Busy-road segments
GET
/v1/suburbs/{suburb_name}/shapes/busy-roads10¢ per callBusy-road line segments clipped to the suburb — the report's road-noise exposure proxy.
Price: 10¢ 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
None — this endpoint accepts no query parameters. Call the path above with your bearer token and nothing else.
Responses
Successful Response
application/json
SuburbBusyRoadsfields returned to you
area_namestringalways returnedCanonical ABS SAL name.
area_levelstringalways returnedAlways 'suburb'.
countintegeralways returnedNumber of road-segment features returned.
geojsonobjectalways returnedGeoJSON FeatureCollection — line geometries of busy road segments clipped to the suburb boundary. Properties: `road_class` (OSM fclass, e.g. motorway/primary/secondary).
GET
/v1/suburbs/{suburb_name}/shapes/busy-roadscURL
curl --request GET \
--url 'https://api.microburbs.com.au/v1/suburbs/Belmont%20North/shapes/busy-roads' \
--header 'Authorization: Bearer test'Example Responses
{
"data": {
"area_level": "suburb",
"area_name": "Belmont North",
"count": 71,
"geojson": {
"features": [
{
"geometry": {
"coordinates": [
[
151.66,
-32.99
],
[
151.67,
-33
]
],
"type": "LineString"
},
"properties": {
"road_class": "primary"
},
"type": "Feature"
}
],
"type": "FeatureCollection"
}
}
}Successful Response200
application/json
