[API] Get Zone Region
The Get Zone Region API resolves a zone identifier returned by Get Quota into a named geographic area.
¶ Use case
The forecast is reported per zone, and each record carries an opaque zone_uuid. This API returns the human-readable name and the geometry behind that identifier, so a fleet can place a zone on a map, group its drivers by area, and brief them on where to position. Zones are stable, so a fleet can fetch each one once and cache it.
¶ Support for Hierarchical Data
The API operates within the hierarchical structure of the organization linked to the developer’s account at the time of setup. A supplier can resolve the zones it has published quota in.
¶ Supported supplier types
Fleets
¶ Scopes
vehicle_suppliers.quota.read
¶ Resource
/v1/quota-management/region/:zone_uuid
¶ HTTP Method
GET
¶ Authorization
¶ Example Request
curl -X GET "https://api.uber.com/v1/quota-management/region/6f3a1c58-1f2e-4c7b-9a54-2d1e8b0c7a91" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>'
¶ Request Path Parameters
| Name | Type | Description |
|---|---|---|
zone_uuid |
string | Zone identifier, as returned in the zone_uuid field of a quota record |
¶ Example Response
Status-code: 200
{
"uuid": "6f3a1c58-1f2e-4c7b-9a54-2d1e8b0c7a91",
"name": "MADRID_CENTRO",
"description": "Central Madrid delivery zone",
"city_id": 1234,
"center_lat": 40.416775,
"center_lng": -3.703790,
"hexagons": [
"8939470c9a3ffff",
"8939470c9a7ffff"
],
"resolution": 9
}
¶ Response Body Parameters
| Name | Type | Description |
|---|---|---|
uuid |
string | Zone identifier, matching the zone_uuid requested |
name |
string | Zone name, for example MADRID_CENTRO |
description |
string | Human-readable description of the zone |
city_id |
int32 | City the zone belongs to |
center_lat |
double | Latitude of the zone centre |
center_lng |
double | Longitude of the zone centre |
hexagons |
list<string> | H3 cell identifiers that make up the zone |
resolution |
int32 | H3 resolution of the cells in hexagons |
¶ Endpoint Specific Errors
| Http Status Code | Code | Message |
|---|---|---|
400 |
bad_request | The request parameters are invalid |
401 |
unauthorized | Invalid OAuth 2.0 credentials. |
403 |
permission_denied | The token is valid but the required scope has not been granted. |
429 |
rate_limited | Number of requests exceeds allowed limit |
500 |
internal_server_error | Internal server error |
Note
- Zone definitions change rarely. Responses may be cached, and are retained for up to one year after a zone last appeared in published quota.
- A zone is only resolvable by a supplier that has itself received quota in that zone. A
zone_uuidbelonging to another supplier, or to a city the caller does not operate in, returns404— the same response as an identifier that does not exist.