VVO TRIAS API Documentation
Base URL: https://efa.vvo-online.de/std3/trias
Overview
TRIAS (Traveller Realtime Information and Advisory Standard) is VVO’s official standards-based XML API. It conforms to the European TRIAS specification and the German VDV 431-2 standard, providing a comprehensive interface for public transport data.
Key Characteristics:
- XML-based request/response format (POST)
- Follows VDV 431-2 standard (versions 1.1 and 1.2)
- No authentication required for basic access (use
<RequestorRef>OpenService</RequestorRef>) - Supports real-time data
- Comprehensive functionality for journey planning, stop information, and departures
- Also reachable over plain HTTP at
http://efa.vvo-online.de:8080/std3/trias. HTTPS on port 8080 does not work - Requests must use
Content-Type: application/xmlortext/xml(text/plainis rejected with HTTP 400) - Not usable from browsers, because the server answers CORS preflight (
OPTIONS) requests with 404
An OpenAPI 3.1 description of the endpoint, with the request types below as examples, is available at openapi/trias.yaml.
Official Documentation
- VDV 431-2 Specification: v1.1 or v1.2 (PDF)
- XML Schema (XSD): VDVde/TRIAS on GitHub
- Contact: opendata@vvo-online.de for questions or API key requests
Basic Request Structure
All TRIAS requests follow this XML structure:
<?xml version="1.0" encoding="UTF-8"?><Trias xmlns="http://www.vdv.de/trias" xmlns:siri="http://www.siri.org.uk/siri" version="1.2"> <ServiceRequest> <siri:RequestTimestamp>2026-02-20T10:30:00Z</siri:RequestTimestamp> <siri:RequestorRef>OpenService</siri:RequestorRef> <RequestPayload> <!-- Service-specific request content --> </RequestPayload> </ServiceRequest></Trias>Required Elements:
RequestTimestamp: ISO 8601 timestamp of the requestRequestorRef: Service identification (use “OpenService” for public access)RequestPayload: Contains the actual service request
The server does not validate requests against the schema. It also accepts xmlns="trias" as the default namespace, and a LocationRef without the LocationName that the schema requires next to the reference.
Main Services
1. LocationInformationRequest
Find stops, addresses, or points of interest.
<RequestPayload> <LocationInformationRequest> <InitialInput> <LocationName>Hauptbahnhof</LocationName> </InitialInput> <Restrictions> <Type>stop</Type> <NumberOfResults>10</NumberOfResults> <IncludePtModes>true</IncludePtModes> </Restrictions> </LocationInformationRequest></RequestPayload>Note: Some stop names may require a city prefix to return results. For example, “Postplatz” alone returns no results while “Dresden Postplatz” works. “Hauptbahnhof” works without prefix (defaults to Dresden context).
Features:
- Text-based location search
- Coordinate-based search
- Filter by location type (stop, address, POI)
- Configurable result limits
2. StopEventRequest
Get departure or arrival information for stops.
<RequestPayload> <StopEventRequest> <Location> <LocationRef> <StopPointRef>de:14612:28</StopPointRef> </LocationRef> </Location> <Params> <NumberOfResults>10</NumberOfResults> <StopEventType>departure</StopEventType> <IncludeRealtimeData>true</IncludeRealtimeData> <IncludeOperatingDays>false</IncludeOperatingDays> </Params> </StopEventRequest></RequestPayload>Features:
- Real-time departure/arrival boards
- Filter by time window
- Filter by transport modes
- Include service alerts and disruptions
3. TripRequest
Plan journeys between locations.
<RequestPayload> <TripRequest> <Origin> <LocationRef> <StopPointRef>de:14612:28</StopPointRef> </LocationRef> </Origin> <Destination> <LocationRef> <StopPointRef>de:14612:201</StopPointRef> </LocationRef> </Destination> <Params> <NumberOfResults>5</NumberOfResults> <IncludeTrackSections>true</IncludeTrackSections> <IncludeIntermediateStops>true</IncludeIntermediateStops> <IncludeFares>false</IncludeFares> </Params> </TripRequest></RequestPayload>Features:
- Intermodal journey planning
- Multiple algorithm options:
fastest- Minimize travel timeminChanges- Minimize transfersleastWalking- Minimize walking distanceleastCost- Minimize fare cost
- Accessibility options:
NoSingleStepNoStairsNoEscalatorNoElevator
- Time-based search (departure or arrival)
- Fares per trip with
<IncludeFares>true</IncludeFares>, see below
With NumberOfResults, a search by departure time also returns one trip that leaves before the given time, and a search by arrival time one that arrives after it. To get only trips on the asked side of the time, send <NumberOfResultsBefore> and <NumberOfResultsAfter> instead, with a zero for the side that is not wanted: <NumberOfResultsBefore>0</NumberOfResultsBefore><NumberOfResultsAfter>5</NumberOfResultsAfter> for a departure time, and the other way around for an arrival time. The schema asks for both elements together. It does not allow a zero in TRIAS 1.2 (it does in OJP 1.0), but the server takes it. The same holds for OJPTripRequest on the OJP endpoint.
With IncludeFares, each TripResult contains TripFares elements with the passed fare zones and one Ticket per passenger type (Adult, Child):
<trias:Ticket> <trias:TicketId>empty</trias:TicketId> <trias:TicketName>Einzelkarte</trias:TicketName> <trias:FaresAuthorityRef>voe</trias:FaresAuthorityRef> <trias:Price>3.60</trias:Price> <trias:NetPrice>3.36</trias:NetPrice> <trias:Currency>EUR</trias:Currency> <trias:TariffLevel>1</trias:TariffLevel> <trias:TravelClass>second</trias:TravelClass> <trias:ValidFor>Adult</trias:ValidFor></trias:Ticket>4. TripInfoRequest
Get all stops of a single journey, with real-time times. Take JourneyRef and OperatingDayRef from the Service element of a StopEventRequest or TripRequest result.
<RequestPayload> <TripInfoRequest> <JourneyRef>ddb:90RE5:0:R:j26:220</JourneyRef> <OperatingDayRef>2026-11-16</OperatingDayRef> <Params> <IncludeCalls>true</IncludeCalls> <IncludeService>true</IncludeService> </Params> </TripInfoRequest></RequestPayload>The TripInfoResult lists the stops already served as PreviousCall and the remaining stops as OnwardCall, each with timetabled and estimated times and the planned platform. IncludeService adds the line, operator, origin and destination. IncludePosition is accepted, but VVO returns no vehicle position. An unknown journey returns the error code ERROR_INVALID_JOURNEY_REF.
5. FaresRequest
Only the StopFaresRequest variant returns data. It lists the fare zones of a stop for each fare authority (voe for VVO, vms for the neighboring VMS). StaticFaresRequest returns an empty result. For ticket prices, use TripRequest with IncludeFares.
<RequestPayload> <FaresRequest> <StopFaresRequest> <StopPointRef>de:14612:28</StopPointRef> </StopFaresRequest> </FaresRequest></RequestPayload><trias:StopFaresResult> <trias:FareZoneListInArea> <trias:FaresAuthorityRef>voe</trias:FaresAuthorityRef> <trias:FaresAuthorityText>voe</trias:FaresAuthorityText> <trias:FareZone> <trias:FareZoneRef>103</trias:FareZoneRef> <trias:FareZoneText>103</trias:FareZoneText> </trias:FareZone> </trias:FareZoneListInArea></trias:StopFaresResult>Unsupported services
VVO does not implement the other request types of TRIAS 1.2: BookingInfoRequest, the four Connection*Request types, FacilityRequest, FacilityStatusReport, GeoCoordinatesRequest, ImageCoordinatesRequest, IndividualRouteRequest, MapServiceRequest, PersonalisationRequest, PositioningRequest, ServiceRegisterRequest, VehicleDataRequest and VehicleInteractionRequest. Subscriptions (SubscriptionRequest) and CapabilitiesRequest are not available either. RefineRequest returns an empty RefineResponse; it is unclear whether it works with a real trip.
Example: Complete Stop Departure Request
curl -X POST "https://efa.vvo-online.de/std3/trias" \ -H "Content-Type: application/xml" \ -d '<?xml version="1.0" encoding="UTF-8"?><Trias xmlns="http://www.vdv.de/trias" xmlns:siri="http://www.siri.org.uk/siri" version="1.2"> <ServiceRequest> <siri:RequestTimestamp>2026-02-20T10:30:00Z</siri:RequestTimestamp> <siri:RequestorRef>OpenService</siri:RequestorRef> <RequestPayload> <StopEventRequest> <Location> <LocationRef> <StopPointRef>de:14612:28</StopPointRef> </LocationRef> </Location> <Params> <NumberOfResults>5</NumberOfResults> <StopEventType>departure</StopEventType> <IncludeRealtimeData>true</IncludeRealtimeData> </Params> </StopEventRequest> </RequestPayload> </ServiceRequest></Trias>'Stop ID Format
TRIAS uses DHID (Deutsche Haltestellen-ID) format for stop references:
- Format:
de:DISTRICT:STOPID - Example:
de:14612:28(Dresden Hauptbahnhof) - District 14612 = Dresden
- Platform-level refs add
:AREA:PLATFORM, e.g.de:14612:28:2:4
Response Structure
Responses are sent as text/xml and follow the TRIAS XML schema with namespaced elements:
<?xml version="1.0" encoding="UTF-8"?><trias:Trias xmlns:siri="http://www.siri.org.uk/siri" xmlns:trias="http://www.vdv.de/trias" version="1.2"> <trias:ServiceDelivery> <siri:ResponseTimestamp>2026-02-20T10:30:05Z</siri:ResponseTimestamp> <siri:ProducerRef>DELIVVO2019</siri:ProducerRef> <siri:Status>true</siri:Status> <trias:DeliveryPayload> <!-- Service-specific response content --> </trias:DeliveryPayload> </trias:ServiceDelivery></trias:Trias>Error Handling
Errors in the request content are returned with HTTP 200 inside the DeliveryPayload, for example:
<trias:LocationInformationResponse> <trias:ErrorMessage> <trias:Code>-8014</trias:Code> <trias:Text> <trias:Text>LOCATION_NORESULTS</trias:Text> <trias:Language>de</trias:Language> </trias:Text> </trias:ErrorMessage></trias:LocationInformationResponse>Malformed XML results in HTTP 400 with an HTML body.
A request type the server does not implement, or a well-formed request it cannot interpret, results in HTTP 200 with an empty body.
Additional Resources
- VDV Website - Standards documentation
- TRIAS Schema Files - XSD definitions