Body Required
string(binary)
string(binary)
Protobuf binary wire format of the following definition
syntax = "proto3";
message TileQueryRequest {
uint32 zoom = 1;
repeated AreaQuery areas = 2;
repeated IndividualTileQuery tiles = 3;
}
message AreaQuery {
// if NE(1,1) + SW(1,1) == { tile(1,1) }
// if NE(2,1) + SW(1,2) == { tile(1,1), tile(2,1), tile(1,2), tile(2,2) }
Coordinate north_east = 1;
Coordinate south_west = 2;
uint64 invalidation_token = 3; // e.g. timestamp or sequence number
}
message IndividualTileQuery {
Coordinate geo = 1;
uint64 invalidation_token = 3; // e.g. timestamp or sequence number
}
message Coordinate {
uint32 x = 1; // tile coordinate
uint32 y = 2; // tile coordinate
}
Responses
-
200 application/protobuf
OK
Protobuf binary wire format of the following definition
syntax = "proto3"; message TileQueryResponse { uint32 zoom = 1; repeated VectorTile vector_tiles = 2; uint64 invalidation_token = 3; // e.g. timestamp or sequence number repeated Coordinate unavailable_tiles = 4; // tile(s) couldn't be generated due to server issues } message VectorTile { Coordinate geo = 1; bytes vector_tiles = 3; } message Coordinate { uint32 x = 1; // tile coordinate uint32 y = 2; // tile coordinate }
-
400 application/vnd.api+json
Bad request
-
401 application/vnd.api+json
OAuth token missing or invalid or a linked identity is missing.
Linked identity missing is a special case where you need to make sure that the user has additionally logged in / authorized with a third-party.
This is not relevant for most use-cases.
The specific error code that identifies a missing linked identity is
missing-linked-identity
Example:
{ "errors": [ { "id": "cbgmhslmp1o9or9kh1p0", "title": "Missing linked identity for authorized access", "detail": "Linked identity is needed to access this resource, please check why the user does not have a linked identity", "status": "401", "code": "missing-linked-identity" } ] }
-
406 application/vnd.api+json
The specified accept header is invalid
-
415 application/vnd.api+json
The specified content type header is invalid
-
422 application/vnd.api+json
The request was well-formed but was unable to be followed due to semantic errors.
-
500 application/vnd.api+json
Internal server error
POST /v1/tiles/query
curl \
-X POST https://api.pace.cloud/poi/2024-2/v1/tiles/query \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/protobuf"
Response examples (400)
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
Response examples (401)
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
Response examples (406)
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
Response examples (415)
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
Response examples (422)
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
Response examples (500)
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}