Suburb - Shapes
Suburb boundary polygon
GET
/v1/suburbs/{suburb_name}/shapes/boundary10¢ per callSimplified SAL boundary polygon (GeoJSON Feature) plus centroid.
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
SuburbBoundaryfields returned to you
area_namestringalways returnedCanonical ABS SAL name.
area_levelstringalways returnedAlways 'suburb'.
centroidobjectalways returnedSuburb centroid — WGS84 lat/lng.
geojsonobjectalways returnedGeoJSON Feature — the SAL boundary polygon, simplified (topology-preserving, ~10 m tolerance, 6 dp coordinates).
GET
/v1/suburbs/{suburb_name}/shapes/boundarycURL
curl --request GET \
--url 'https://api.microburbs.com.au/v1/suburbs/Belmont%20North/shapes/boundary' \
--header 'Authorization: Bearer test'Example Responses
{
"data": {
"area_level": "suburb",
"area_name": "Belmont North",
"centroid": {
"lat": -32.9931,
"lng": 151.6688
},
"geojson": {
"geometry": {
"coordinates": [
[
[
151.66,
-32.99
],
[
151.67,
-32.99
],
[
151.67,
-33
],
[
151.66,
-32.99
]
]
],
"type": "Polygon"
},
"properties": {
"suburb": "Belmont North"
},
"type": "Feature"
}
}
}Successful Response200
application/json
