Partner server API overview
Stay organized with collections
Save and categorize content based on your preferences.
This section gives more details about the Partner Server API that you will need
as part of the integration with Google
Transport.
To integrate pricing and availability information, partners will need to
implement the Partner API – in particular, the GetBulkTripOptions
method.
At a high level this API uses the following concepts:
Service class
A service class indicates a standard level of service provided across a group of
different seats/tickets. Traveling options with the same service class should be
a largely equivalent experience (same seat types, amenities, etc) but there may
be some small variations per seat (e.g. additional legroom, window, etc).
Service classes will be used to provide information to users about different
travel options on a particular trip.
Segment
A segment describes a portion of the user's journey which happens on a single
vehicle, including all attributes that relate to it (e.g. the service class for
that segment).
The SegmentKey
identifies the segment's exact timing and vehicle, but doesn't include any
additional attributes describing the journey on that vehicle.
A trip search generally includes multiple segment keys because a user may have
to use multiple vehicles to reach their chosen destination. Each returned trip
option includes multiple segments that specify the service classes for each
requested segment key.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-22 UTC."],[[["The Partner Server API is essential for integrating pricing and availability information with Google Transport."],["Partners must implement the GetBulkTripOptions method within the Partner API for integration."],["A service class represents a standard level of service across different seats or tickets, ensuring a largely equivalent travel experience."],["A segment describes a part of the user's journey on a single vehicle, including its service class."],["SegmentKey identifies a segment's precise timing and vehicle, forming a part of the full trip options."]]],[]]