api.automapa.comv3 - все системы работают

Autocomplete адреса

Autocomplete.searchAddress

Подсказки для частично введенного адреса: город, улица, номер или почтовый код.

POST/v3/Autocomplete/searchAddressapi.automapa.com

Параметры body

Тело запросаТипОписание
queryobject ОБЯЗАТЕЛЬНОPartial fields.
citystringCity or prefix.
streetstringStreet or prefix.
numberstringHouse number.
zipcodestringPostal code.
sourcestring ОБЯЗАТЕЛЬНОActive field: place | street | number | zipcode.
limitintegerMax suggestions (default 10).
selectedstring[]Already-chosen fields, e.g. ["city","zipcode"].

Пример запроса

{
    "query": {
        "city": "Warszawa",
        "zipcode": "02-672",
        "street": "Dom",
        "number": ""
    },
    "source": "street",
    "selected": [
        "city",
        "zipcode"
    ]
}

Пример ответа

{
    "result": {
        "items": [
            {
                "city": "Warszawa",
                "street": "Domaniewska",
                "zipcode": "02-672",
                "count": 1
            }
        ]
    }
}

поля result

поля resultТипОписание
items[].citystringCity.
items[].streetstringStreet.
items[].numberstringHouse number.
items[].zipcodestringPostal code.
items[].countintegerHow many objects share this name.
items[].coordsobject{ x, y } if uniquely a city or building.