Property - Amenities
Nearest transport by mode
GET
/v1/properties/{gnaf_id}/transport/nearby5¢ per callNearest train / tram / bus / ferry stop to the property, per mode,
with distance. Widen radius_m for the nearest station beyond 1km.
Price: 5¢ per call.
Authorization
Request
The only values you send. Fields under Responses below are what comes back — you never pass those.
Path parameters
gnaf_idstringrequiredQuery parameters
radius_minteger100–5000optionalSearch radius in metres (100–5000, default 1000).
Responses
Successful Response
application/json
TransportNearbyfields returned to you
gnaf_idstringalways returnedGNAF property identifier.
center_latnumberalways returnedProperty latitude (WGS84).
center_lngnumberalways returnedProperty longitude (WGS84).
radius_mintegeralways returnedSearch radius applied, metres.
countsobjectalways returnedCount per mode within the radius (train / tram / bus / ferry).
nearestobjectalways returnedNearest stop per mode; null when none falls inside the radius.
GET
/v1/properties/{gnaf_id}/transport/nearbycURL
curl --request GET \
--url 'https://api.microburbs.com.au/v1/properties/GANSW704074813/transport/nearby' \
--header 'Authorization: Bearer test'Example Responses
{
"data": {
"center_lat": -33.802479,
"center_lng": 151.219715,
"counts": {
"bus": 6,
"ferry": 0,
"train": 0,
"tram": 0
},
"gnaf_id": "GANSW704360755",
"nearest": {
"bus": {
"distance_m": 130,
"label": "Bus stop",
"lat": -33.8031,
"lng": 151.2201
}
},
"radius_m": 1000
}
}Successful Response200
application/json
