MicroburbsMicroburbs
Free sandbox: try any request below on the sample suburbs, no signup. For every suburb, create an API key.
Classic docs
Microburbs Property Data API
Property - Transport

Western Australia public transport service routes nearby

GET/v1/properties/{gnaf_id}/layers/wa-public-transport-routes/nearby10¢ per call

2,116 public transport service routes in Western Australia drawn as lines, with route type, name, destination and services by time of day.

Coverage: Western Australia, 2,116 route lines. Current to 2026-11-19. Full description, field list and method: /v1/datasets/wa-public-transport-routes.

GeoJSON: every line feature within radius_m of the address, nearest first, with its distance.

Authorization

Request

The only values you send. Fields under Responses below are what comes back — you never pass those.

Path parameters

gnaf_idstringrequired

GNAF address id, e.g. `GANSW704074813` (resolve an address with /v1/geocode/address).

Query parameters

radius_mintegeroptional

Search radius in metres, 1 to 2000.

fieldsstringoptional

Comma-separated subset of: gid, serviceid, routetype, routename, servicenam, priority, departure, destinatio, comments, area_lg, weekpam, weekppm, weekoff, satpam, satppm, satoff, sunphpam, sunphppm, sunphoff, objectid, accessible, limited, special, weekear, weeklat, satear, satlat, sunphear, sunphlat, st_length_shape. Omit for all.

limitintegeroptional

Features per page, 1 to 500 (default 200).

offsetintegeroptional

Features to skip, for the next page (`next_offset`).

Responses

Successful Response

application/json
DatasetLayerfields returned to you
datasetstringalways returned

Dataset slug; describe it with /v1/datasets/{slug}.

geometry_typestringalways returned

point, line or polygon.

areastringalways returned

The suburb answered, or the GNAF id the search is centred on.

radius_mintegermay be null

Nearby calls: the search radius in metres. Null for suburb calls.

as_ofstring · datealways returned

Date the dataset is current to.

modelledbooleanalways returned

True when the features are modelled estimates.

totalintegeralways returned

Features matching, across every page.

limitintegeralways returned

Page size used.

offsetintegeralways returned

Features skipped before this page.

next_offsetintegermay be null

Offset of the next page; null on the last page.

geojsonobjectalways returned
GET/v1/properties/{gnaf_id}/layers/wa-public-transport-routes/nearby
cURL
curl --request GET \
  --url 'https://api.microburbs.com.au/v1/properties/GANSW704074813/layers/wa-public-transport-routes/nearby' \
  --header 'Authorization: Bearer test'
Example Responses
{
  "data": {
    "dataset": "wa-public-transport-routes",
    "geometry_type": "line",
    "area": "GAWA_146662403",
    "radius_m": 2000,
    "as_of": "2026-11-19",
    "modelled": false,
    "total": 344,
    "limit": 3,
    "offset": 0,
    "next_offset": 3,
    "geojson": {
      "type": "FeatureCollection",
      "features": [
        {
          "type": "Feature",
          "id": "334d041e46f573da",
          "geometry": {
            "type": "MultiLineString",
            "coordinates": [
              [
                [
                  115.856821,
                  -31.950153
                ],
                [
                  115.857625,
                  -31.950519
                ],
                [
                  115.857663,
                  -31.950529
                ]
              ],
              [
                [
                  115.857828,
                  -31.950438
                ],
                [
                  115.857836,
                  -31.950403
                ],
                [
                  115.857833,
                  -31.950367
                ]
              ],
              [
                [
                  115.856943,
                  -31.949888
                ],
                [
                  115.856091,
                  -31.949497
                ],
                [
                  115.856059,
                  -31.949489
                ]
              ]
            ]
          },
          "properties": {
            "gid": 129994,
            "serviceid": 129994,
            "routetype": "Standard",
            "routename": "28",
            "servicenam": "028F",
            "priority": 0,
            "departure": "PERTH BUSPORT",
            "destinatio": "CLAREMONT STN",
            "weekpam": 2,
            "weekppm": 0,
            "weekoff": 0,
            "satpam": 0,
            "satppm": 0,
            "satoff": 0,
            "sunphpam": 0,
            "sunphppm": 1,
            "sunphoff": 1,
            "objectid": 241,
            "accessible": true,
            "limited": false,
            "special": false,
            "weekear": 0,
            "weeklat": 0,
            "satear": 0,
            "satlat": 0,
            "sunphear": 0,
            "sunphlat": 0,
            "st_length_shape": 0.16095655736434236,
            "distance_m": 27.7
          }
        },
        {
          "type": "Feature",
          "id": "3739ed79b1e374f0",
          "geometry": {
            "type": "MultiLineString",
            "coordinates": [
              [
                [
                  115.856821,
                  -31.950153
                ],
                [
                  115.857625,
                  -31.950519
                ],
                [
                  115.857663,
                  -31.950529
                ]
              ],
              [
                [
                  115.857828,
                  -31.950438
                ],
                [
                  115.857836,
                  -31.950403
                ],
                [
                  115.857833,
                  -31.950367
                ]
              ],
              [
                [
                  115.856943,
                  -31.949888
                ],
                [
                  115.856091,
                  -31.949497
                ],
                [
                  115.856059,
                  -31.949489
                ]
              ]
            ]
          },
          "properties": {
            "gid": 129995,
            "serviceid": 129995,
            "routetype": "Standard",
            "routename": "28",
            "servicenam": "028FA",
            "priority": 0,
            "departure": "PERTH BUSPORT",
            "destinatio": "CLAREMONT STN",
            "comments": "Deviates via Floreat Forum.",
            "weekpam": 0,
            "weekppm": 1,
            "weekoff": 1,
            "satpam": 1,
            "satppm": 1,
            "satoff": 1,
            "sunphpam": 0,
            "sunphppm": 0,
            "sunphoff": 0,
            "objectid": 1616,
            "accessible": true,
            "limited": false,
            "special": false,
            "weekear": 0,
            "weeklat": 0,
            "satear": 0,
            "satlat": 0,
            "sunphear": 0,
            "sunphlat": 0,
            "st_length_shape": 0.181085290135572,
            "distance_m": 27.7
          }
        },
        {
          "type": "Feature",
          "id": "764fb133410d5df8",
          "geometry": {
            "type": "MultiLineString",
            "coordinates": [
              [
                [
                  115.856821,
                  -31.950153
                ],
                [
                  115.857625,
                  -31.950519
                ],
                [
                  115.857663,
                  -31.950529
                ]
              ],
              [
                [
                  115.857828,
                  -31.950438
                ],
                [
                  115.857836,
                  -31.950403
                ],
                [
                  115.857833,
                  -31.950367
                ]
              ],
              [
                [
                  115.856943,
                  -31.949888
                ],
                [
                  115.856091,
                  -31.949497
                ],
                [
                  115.856059,
                  -31.949489
                ]
              ]
            ]
          },
          "properties": {
            "gid": 130000,
            "serviceid": 130000,
            "routetype": "Standard",
            "routename": "28",
            "servicenam": "028FJ",
            "priority": 0,
            "departure": "PERTH BUSPORT",
            "destinatio": "SHENTON PARK STN",
            "comments": "Terminates at Shenton Park Stn",
            "weekpam": 0,
            "weekppm": 0,
            "weekoff": 0,
            "satpam": 0,
            "satppm": 0,
            "satoff": 0,
            "sunphpam": 0,
            "sunphppm": 0,
            "sunphoff": 0,
            "objectid": 699,
            "accessible": true,
            "limited": false,
            "special": false,
            "weekear": 0,
            "weeklat": 0,
            "satear": 0,
            "satlat": 0,
            "sunphear": 0,
            "sunphlat": 0,
            "st_length_shape": 0.07014350072769589,
            "distance_m": 27.7
          }
        }
      ]
    }
  }
}
Successful Response200
application/json