Skip to content

Retrieving towns by IDs

Description

Retrieving towns by IDs.

URL structure

GET /v2/references/towns/by/ids

List of parameters

Name Description Parameter transfer type Required(+)/Default(value)
language Localization language. Usage details. Query string parameter ru
ids Town ids. The maximum is 100. Query string parameter +

Result

Array of structures "Town".

Sample request

curl -X GET -H "Accept: application/json" -H "Authorization: 3WQ1EQ465C4005000130" "https://api.lardi-trans.com/v2/references/towns/by/ids?ids=137,138&language=uk"

Sample response

JSON
[
    {
        "id": 137,
        "name": "Київ",
        "countrySign": "UA",
        "areaId": 23,
        "lat": 50.444795,
        "lon": 30.528718,
        "postcode": [
            "01000-06999",
            "12345"
        ]
    },
    {
        "id": 138,
        "name": "Васильків",
        "countrySign": "UA",
        "areaId": 23,
        "lat": 50.177089,
        "lon": 30.319639,
        "postcode": [
            "08600-08606"
        ]
    }
]