REST Resource: networks.lines
Stay organized with collections
Save and categorize content based on your preferences.
Resource: Line
A line that is being operated at a given frequency.
JSON representation |
{
"name": string,
"hubIds": [
string
]
} |
Fields |
name |
string
Identifier. Cannot be updated.
|
hubIds[] |
string
Required. List of hubs that this line calls at, in the order vehicles stop at them.
|
Methods |
|
Creates a Line. |
|
Deletes a Line. |
|
Gets the details of a Line. |
|
Lists the Lines. |
|
Makes a line available. |
|
Makes a line unavailable. |
|
Updates a Line. |
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-01-14 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-01-14 UTC."],[[["A Line represents a route operated at a specific frequency, defined by a name and the hubs it visits in sequence."],["Lines can be created, updated, deleted, and their availability can be managed using dedicated methods."],["Essential Line data includes its unique identifier (`name`) and an ordered list of hub identifiers (`hubIds[]`) indicating the stops along the route."],["Detailed information and management functionalities for Lines are accessible through the provided REST API endpoints."]]],["Lines, operated at a specific frequency, are defined by a unique `name` and a required list of `hubIds`, indicating the order of vehicle stops. Key actions include creating, deleting, getting details of, and listing lines. Lines can be updated via patching. Additionally, lines can be made available or unavailable. The `name` is an immutable identifier. The data is represented as a JSON object with `name` and `hubIds` fields.\n"]]