| Crates.io | motis-openapi-sdk |
| lib.rs | motis-openapi-sdk |
| version | 5.0.0 |
| created_at | 2025-01-30 15:43:47.358054+00 |
| updated_at | 2025-12-26 09:39:55.608958+00 |
| description | Automatically generated code for the Motis OpenAPI description. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1536507 |
| size | 507,667 |
This is the MOTIS routing API.
Overview of MOTIS API versions:
MOTIS 0.x - deprecated/discontinued
MOTIS 2.x - current, providing:
If you use the JS client lib https://www.npmjs.com/package/@motis-project/motis-client, endpoint versions will be taken into account automatically (i.e. the newest one available will be used).
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
org.openapitools.codegen.languages.RustClientCodegenPut the package under your project folder in a directory named motis-openapi-sdk and add the following to Cargo.toml under [dependencies]:
motis-openapi-sdk = { path = "./motis-openapi-sdk" }
All URIs are relative to https://api.transitous.org
| Class | Method | HTTP request | Description |
|---|
DebugApi | transfers | GET /api/debug/transfers | Prints all transfers of a timetable location (track, bus stop, etc.)
GeocodeApi | geocode | GET /api/v1/geocode | Autocompletion & geocoding that resolves user input addresses including coordinates
GeocodeApi | reverse_geocode | GET /api/v1/reverse-geocode | Translate coordinates to the closest address(es)/places/stops.
MapApi | initial | GET /api/v1/map/initial | initial location to view the map at after loading based on where public transport should be visible
MapApi | levels | GET /api/v1/map/levels | Get all available levels for a map section
MapApi | rentals | GET /api/v1/rentals | Get a list of rental providers or all rental stations and vehicles for a map section or provider
MapApi | stops | GET /api/v1/map/stops | Get all stops for a map section
MapApi | trips | GET /api/v5/map/trips | Given a area frame (box defined by top right and bottom left corner) and a time frame, it returns all trips and their respective shapes that operate in this area + time frame. Trips are filtered by zoom level. On low zoom levels, only long distance trains will be shown while on high zoom levels, also metros, buses and trams will be returned.
RoutingApi | one_to_all | GET /api/v1/one-to-all | Computes all reachable locations from a given stop within a set duration. Each result entry will contain the fastest travel duration and the number of connections used.
RoutingApi | one_to_many | GET /api/v1/one-to-many | Street routing from one to many places or many to one. The order in the response array corresponds to the order of coordinates of the \many\\ parameter in the query.
RoutingApi | plan | GET /api/v5/plan | Computes optimal connections from one place to another.
TimetableApi | stoptimes | GET /api/v5/stoptimes | Get the next N departures or arrivals of a stop sorted by time
TimetableApi | trip | GET /api/v5/trip | Get a trip as itinerary
To get access to the crate's generated documentation, use:
cargo doc --open