Nearest transport by mode
/v1/properties/{gnaf_id}/transport/nearby5¢ per callNearest train / tram / bus / ferry stop to the property, per mode,
with distance. counts are within radius_m; a mode with none inside it
is still looked up out to 5 km, so distance_m can exceed radius_m.
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
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. Looked up out to 5 km when none falls inside `radius_m` (check `distance_m`); null only when there is none within 5 km.
About this data
What this is
The nearest train station, tram stop, bus stop and ferry wharf to an address, each with its distance, plus how many of each lie within the radius you choose.
What people use it for
- Buyers and renters: know how far it is to the station before an inspection.
- Agents: quote walking distance to transport in a listing.
- Property apps and analysts: score access to public transport.
Tips
Set radius_m between 100 and 5,000 metres (default 1,000). A mode with nothing inside the radius is still looked up as far as 5 km, so check distance_m rather than assuming the nearest stop is within the radius. A mode is null only when there is none within 5 km. Distances are straight-line, not walking routes. For shops and parks, use /v1/properties/{gnaf_id}/amenities/nearby.
/v1/properties/{gnaf_id}/transport/nearbycurl --request GET \
--url 'https://api.microburbs.com.au/v1/properties/GANSW704074813/transport/nearby' \
--header 'Authorization: Bearer test'{
"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
}
}