Pobierz podpowiedzi adresów
POST
/api/v1/catalog/addressesPodpowiedzi adresów w Polsce.
Usługa wymaga dostawcy geokodowania. Brak konfiguracji daje ADDRESS_PROVIDER_DISABLED, awaria dostawcy daje ADDRESS_PROVIDER_UNAVAILABLE.
Wymagany zakres listings:read
Treść żądania
Schemat AddressSuggestionRequest
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
query | string | Tak | min. znaków 3 · maks. znaków 160 |
limit | integer | Nie | minimum 1 · maksimum 8 · domyślnie 6 |
JSON Schema
{
"$ref": "#/components/schemas/AddressSuggestionRequest"
}Odpowiedzi
200 Żądanie zakończone pomyślnie.application/jsonSchemat AddressSuggestions
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
items | object[] | Nie | — |
JSON Schema
{
"$ref": "#/components/schemas/AddressSuggestions"
}429 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}502 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}503 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}Pozostałe błędy API Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}401 Brak prawidłowego klucza API.403 Brak zakresu wymaganego przez operację lub żądanie bez HTTPS na produkcji.Powiązane schematy
AddressSuggestionRequest
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 3,
"maxLength": 160
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 8,
"default": 6
}
},
"required": [
"query"
]
}AddressSuggestions
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"lat": {
"type": "number"
},
"lng": {
"type": "number"
},
"city": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"region": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"postalCode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"street": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"houseNumber": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
}
}
}
}