https://github.com/catenarytransit/vehicles
Open source database of vehicle data. Designed to work with catenarytransit/catenary-backend
https://github.com/catenarytransit/vehicles
Last synced: 2 months ago
JSON representation
Open source database of vehicle data. Designed to work with catenarytransit/catenary-backend
- Host: GitHub
- URL: https://github.com/catenarytransit/vehicles
- Owner: catenarytransit
- Created: 2025-03-13T10:41:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-24T22:33:05.000Z (9 months ago)
- Last Synced: 2025-10-24T06:35:02.888Z (8 months ago)
- Language: Rust
- Size: 72.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Catenary Vehicles
Open source database of vehicle data. Designed to work with catenarytransit/catenary-backend.
## Schema
Quite simple.
```rust
pub struct RootOfVehicleFile {
pub vehicles: Vec
}
pub struct VehicleType {
pub manufacturer: String,
pub model: String,
pub roster: Vec
}
pub struct Roster {
pub fleet_selection: FleetSelector,
pub engine: Option,
pub transmission: Option,
pub notes: Option,
pub years: Option>,
pub division: Option
}
//range numbers are inclusive on both sides.
//for example, to iterate, do
//for i in start_number..=end_number
pub struct FleetSelector {
pub start_number: Option,
pub end_number: Option,
pub start_text: Option,
pub end_text: Option,
pub use_numeric_sorting: bool
}
```
More fields can be added if people request them.
## Check validity
```bash
cargo run
```
## Language
The notes must be in the language of the local agency. Adding English or another language is optional. For example, Agencies in Quebec should use French.
Ottawa notes should be bilingual. Belgium buses should be in French and Dutch.