Index
RoadsSelection
(interface)BatchCreateSelectedRoutesRequest
(message)BatchCreateSelectedRoutesResponse
(message)CreateSelectedRouteRequest
(message)DeleteSelectedRouteRequest
(message)GetSelectedRouteRequest
(message)ListSelectedRoutesRequest
(message)ListSelectedRoutesResponse
(message)SelectedRoute
(message)SelectedRoute.DynamicRoute
(message)SelectedRoute.State
(enum)SelectedRoute.ValidationError
(enum)
RoadsSelection
Service definition for the Roads Selection API.
BatchCreateSelectedRoutes |
---|
Creates multiple SelectedRoutes and starts a schedule to periodically retrieve cache information for each of the routes.
|
CreateSelectedRoute |
---|
Creates a SelectedRoute and starts a schedule to periodically retrieve cache information for the route.
|
DeleteSelectedRoute |
---|
Deletes the specified SelectedRoute for the specified project.
|
GetSelectedRoute |
---|
Gets a SelectedRoute as specified by its name.
|
ListSelectedRoutes |
---|
Lists all SelectedRoutes for the specified project with pagination.
|
BatchCreateSelectedRoutesRequest
Request to create multiple SelectedRoute
s.
Fields | |
---|---|
parent |
Optional. The project resource shared by all selected routes. Format: projects/{project} If this is set, the parent field in the CreateSelectedRouteRequest messages must either be empty or match this field. |
requests[] |
Required. The request message specifying the selected route to create. A maximum of 1000 selected routes can be created in a batch. |
BatchCreateSelectedRoutesResponse
Response from creating multiple SelectedRoute
s.
Fields | |
---|---|
selected_routes[] |
SelectedRoutes created. |
CreateSelectedRouteRequest
Request to create a SelectedRoute
.
Fields | |
---|---|
parent |
Required. The project that the |
selected_route |
Required. The |
selected_route_id |
Optional. The ID to use for the This value should be 4-63 characters, and valid characters are: "a-z", "A-Z", "0-9" or "-". If it is not provided or empty, a UUID will be generated after resource creation. |
DeleteSelectedRouteRequest
Request to delete a SelectedRoute
.
Fields | |
---|---|
name |
Required. The name of the SelectedRoute to delete. Format: projects/{project}/selectedRoutes/{selected_route} |
GetSelectedRouteRequest
Request to get a SelectedRoute
.
Fields | |
---|---|
name |
Required. The name of the |
ListSelectedRoutesRequest
Request to list SelectedRoute
s.
Fields | |
---|---|
parent |
Required. The parent, which is the project that all |
page_size |
Optional. The number of results that should be returned for a given page. If not set the default value is 100. When a value of 0 is given the value will be set to the default. The max value is 5000, any value above 5000 will be set to 5000. |
page_token |
Optional. A page token, received from a previous |
ListSelectedRoutesResponse
Response that lists SelectedRoute
s.
Fields | |
---|---|
selected_routes[] |
A page of SelectedRoutes stored in the project specified in the request. |
next_page_token |
Token that can be sent as |
SelectedRoute
A SelectedRoute represents a specific route that a customer wants to periodically retrieve information (e.g. duration) for contracted use cases.
Fields | |
---|---|
name |
Identifier. Resource name of the Format: projects/{project}/selectedRoutes/{selected_route} |
display_name |
Optional. Display name of the route. This is an optional field that can be used by the customer. It does not have to be unique. |
create_time |
Output only. Time when the selected route was first created. |
state |
Output only. The state of the selected route. |
route_attributes |
Optional. The custom attributes for the selected route. Adding them allows filtering / grouping of the routes when retrieving historical and real-time routes information. Up to 10 attributes are supported per route. Each key and value should be a non empty string and can have up to 100 characters. The keys must not start with "goog". |
Union field route_type . Currently only DynamicRoute is supported. route_type can be only one of the following: |
|
dynamic_route |
The |
validation_error |
Output only. The validation error for the selected route when the state is STATE_INVALID. |
DynamicRoute
This represents a route with waypoints (origin, destination and intermediates). The actual route is guaranteed to pass all the waypoints, but it could change from time to time due to varying traffic condition.
Fields | |
---|---|
origin |
Required. Origin location of the route. |
destination |
Required. Ending location of the route. |
intermediates[] |
Optional. A set of intermediate waypoints along the route (excluding terminal points). They are always passing-by points. Up to 25 intermediate waypoints are supported. Adding them properly can reduce the variation of actual route from time to time. |
State
The state of the selected route.
Enums | |
---|---|
STATE_UNSPECIFIED |
The state of this route is not set. |
STATE_SCHEDULING |
The route has been created and is being scheduled. |
STATE_RUNNING |
The route has been created and has an active schedule. |
STATE_DELETING |
The route has been marked for deletion. |
STATE_VALIDATING |
The route is in the process of being validated. |
STATE_INVALID |
The route is invalid based on one of the validation criteria. |
ValidationError
The validation error for the selected route.
Enums | |
---|---|
VALIDATION_ERROR_UNSPECIFIED |
The validation error of this route is not set. |
VALIDATION_ERROR_ROUTE_OUTSIDE_JURISDICTION |
The route is outside the jurisdiction of the project. |
VALIDATION_ERROR_LOW_ROAD_USAGE |
The route has low road usage (very few people pass through it). |