π Bus Lines APIs_
The Bus Lines APIs provide access to partnered bus line data, including download links and detailed information about available bus routes.
Overview
The Bus Lines APIs provide access to partnered bus line data, including download links and detailed information about available bus routes.
Endpoints
Get All Partnered Lines
Endpoint: GET /lines
Retrieves a list of all partnered bus lines available for download.
Parameters: None
Response:
<code>{
"success": true,
"lines": [
{
"id": 1,
"name": "City Express Line 42",
"file_name": "line_42_v1.0.zip",
"current_version": "1.0",
"download_url": "https://example.com/download/line_42.zip",
"company": {
"id": 456,
"name": "City Transport Company"
},
"partnered": true,
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z"
}
]
}
</code>Get Line Details
Endpoint: GET /lines/{lineId}
Retrieves detailed information about a specific bus line.
Parameters:
lineId(path) - The line's ID
Response:
<code>{
"success": true,
"line": {
"id": 1,
"name": "City Express Line 42",
"file_name": "line_42_v1.0.zip",
"current_version": "1.0",
"download_url": "https://example.com/download/line_42.zip",
"company": {
"id": 456,
"name": "City Transport Company"
},
"partnered": true,
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z"
}
}
</code>Error Responses:
404- Line not found or not partnered
Line Properties
id- Unique line identifiername- Line display namefile_name- Download file namecurrent_version- Current version numberdownload_url- Direct download linkcompany- Associated company informationpartnered- Whether the line is officially partneredcreated_at- When the line was createdupdated_at- When the line was last updated
Usage Notes
- Only partnered lines are accessible through the API
- Download URLs are direct links to the line files
- Lines are sorted alphabetically by name
- Company information includes the creating/owning company
β API Status: Operational |
β Version: v2.1.0 |
β Last updated: Sep 2, 2025
dbus-api:~ $
API Documentation: All API documentation is provided in English for consistency and technical accuracy. This approach saves valuable work for translators.