Service Area#
Note
Viewing documentation for the current version v1.
The required Protobuf definitions can be downloaded here:
ServiceAreaService#
This ServiceAreaService provides methods to query service areas.
GetServiceArea#
rpc
GetServiceArea(GetServiceAreaRequest) returns (GetServiceAreaResponse)
Get service area by ID.
Fails with NOT_FOUND with the reason SERVICE_AREA_NOT_FOUND if the service area does not exist.
ListServiceAreas#
rpc
ListServiceAreas(ListServiceAreasRequest) returns (ListServiceAreasResponse)
List service areas, paginated. Returns an empty list if none are found.
Fails with INVALID_ARGUMENT with the following reasons:
INVALID_PAGE_SIZEif thepage_sizeis less than zero.INVALID_PAGE_TOKENif thepage_tokendoes not match previous requests.
ListServiceHours#
rpc
ListServiceHours(ListServiceHoursRequest) returns (ListServiceHoursResponse)
List service hours for a service area.
Fails with INVALID_ARGUMENT with the following reasons:
INVALID_PAGE_SIZEif thepage_sizeis less than zero.INVALID_PAGE_TOKENif thepage_tokendoes not match previous requests.
Messages#
GetServiceAreaRequest#
The request to get a service area by ID.
Field | Type | Description |
|---|---|---|
| string | The ID of the service area. |
GetServiceAreaResponse#
The response containing the requested service area.
Field | Type | Description |
|---|---|---|
| The service area with the given ID. |
ListServiceAreasRequest#
The request to list service areas.
Field | Type | Description |
|---|---|---|
| optional int32 | The maximum number of service areas to return. The service may return fewer than this value. If unspecified or set to zero, at most 5 service areas will be returned. The maximum value is 100; values above 100 will be coerced to 100. Negative values won’t be accepted. |
| optional string | A page token, received from a previous |
ListServiceAreasResponse#
The response containing service areas.
Field | Type | Description |
|---|---|---|
| repeated ServiceArea | List of service areas. |
| optional string | A token, which can be sent as |
ListServiceHoursRequest#
The request to list a service area’s service hours.
Field | Type | Description |
|---|---|---|
| string | The ID of the service area. |
| optional int32 | The maximum number of service hours to return. The service may return fewer than this value. If unspecified or set to zero, at most 25 service hours will be returned. The maximum value is 100; values above 100 will be coerced to 100. Negative values won’t be accepted. |
| optional string | A page token, received from a previous |
ListServiceHoursResponse#
The list of a service area’s service hours.
Field | Type | Description |
|---|---|---|
| repeated moia.type.v1.TimeInterval | The time intervals in which ridepooling in this service area is in service. The time intervals are ordered chronologically from the current time to the future. |
| string | The ID of the service area. |
| optional string | A token, which can be sent as |
ServiceArea#
A service area is an area in the physical world where a ridepooling service is in operation.
Field | Type | Description |
|---|---|---|
| string | Unique name of the service area. |
| string | ID of the service area. |
| repeated moia.type.v1.LatLon | Polygon with a list of locations delineating the exact boundaries of the service area. |
| string | Time zone ID in IANA Time Zone codes e.g. Europe/Berlin. |
| string | ISO 3166-1 alpha-2 country code of the country this service area is located in. |
| google.protobuf.Timestamp | Service area creation date. |
| google.protobuf.Timestamp | Service area last modified date. |