Yeah, definitely not foolproof. Some start with and some end with the station name. e.g. “Botany Rd opp Green Square Station”. Some might not even have the station name in it at all!
If you need a more exhaustive list, filtering based on the start of the id
field is probably the way to go. e.g. below query is a 2km radius query for Turramurra. It’ll include a whole bunch of stops that aren’t part of the stop group but you can exclude them by checking the id
doesn’t start with 10101123
:
{
"version": "10.2.2.48",
"locations": [
{
"id": "10101123-10-TUR2",
...
"properties": {
"distance": 20,
"STOPPOINT_GLOBAL_ID": "2074182",
"STOP_AREA_NAME": "TUR1",
"STOP_POINT_REFERED_NAME": "Turramurra Station, Platform 2",
"STOP_POINT_REFERED_NAMEWITHPLACE": "Turramurra, Turramurra Station, Platform 2",
"IDENTIFIER": "TUR2"
}
},
{
"id": "10101123-10-TUR1",
...
"properties": {
"distance": 21,
"STOPPOINT_GLOBAL_ID": "2074181",
"STOP_AREA_NAME": "TUR1",
"STOP_POINT_REFERED_NAME": "Turramurra Station, Platform 1",
"STOP_POINT_REFERED_NAMEWITHPLACE": "Turramurra, Turramurra Station, Platform 1",
"IDENTIFIER": "TUR1"
}
},
{
"id": "10101123-20-X1",
...
"properties": {
"distance": 48,
"STOPPOINT_GLOBAL_ID": "207467",
"STOP_AREA_NAME": "BUS1",
"STOP_POINT_REFERED_NAME": "Turramurra Station, Stand A",
"STOP_POINT_REFERED_NAMEWITHPLACE": "Turramurra, Turramurra Station, Stand A",
"IDENTIFIER": "X1"
}
},
...
{
"id": "10114012-0-X1",
...
"properties": {
"distance": 101,
"STOPPOINT_GLOBAL_ID": "207414",
"STOP_AREA_NAME": "Swa",
"STOP_POINT_REFERED_NAME": "Pacific Hwy before Kissing Point Rd",
"STOP_POINT_REFERED_NAMEWITHPLACE": "Turramurra, Pacific Hwy before Kissing Point Rd",
"IDENTIFIER": "X1"
}
},
...
]
}
Notice how Pacific Hwy before Kissing Point Rd, which isn’t part of Turramurra Station, doesn’t start with 10101123?
All the grouping data is in the Trip Planner API system, but it’s not (as far as I know) exposed in an easy way to get at.