Bus Stops
Returns a list of all bus stops on the island.
GET /v1/bus/stops
Response
- 200 (OK)
- Schema
This is a sample response.
Status: 200 (OK)
{
"results": [
{
"id": "02104e61-8704-4d3d-9a3f-4aeb2c655af9",
"createdAt": "2024-07-02T11:35:23.000Z",
"name": "Bagatelle Lane S",
"code": "2498",
"latitude": 49.18892618,
"longitude": -2.08944029,
"shelter": true
},
{
"id": "02d56b05-6b19-4e26-bbb7-78e0692da6d4",
"createdAt": "2024-07-02T11:35:23.000Z",
"name": "Clos des Champs N",
"code": "2967",
"latitude": 49.21526725,
"longitude": -2.06620168,
"shelter": false
}
]
}
Root
Key | Type | Description |
---|---|---|
results | Array | Array of BusStop s. See example response. |
BusStop
Key | Type | Description |
---|---|---|
id | UUID | A unique ID to represent this bus stop |
name | String | The bus stop name |
code | String | The 4-digit code the uniquely represents this bus stop |
latitude | Number | The latitude of the bus stop |
longitude | Number | The longitude of the bus stop |
shelter | Boolean | True if the bus stop has a shelter, otherwise false |
Example Map View
Here is an example of using the data to display all bus stops on a map. Click on a icon for more information.
Loading...
Blue (Bus Stop) • Yellow (Bus Stop with Shelter)