Structure "Town"
This structure describes the element of the "Towns" directory.
Field description
Name |
Description | Data type | Required |
---|---|---|---|
id |
Town id. | Number | + |
name |
Localized town name. | String | + |
countrySign |
Country code from the "Countries" directory to which this town belongs. | String | + |
areaId |
Id of a region from the "Regions" directory to which this town belongs. | Number | + |
lat |
Town latitude. | Number | + |
lon |
Town longitude. | Number | + |
postcodes[].postcode |
Town postcode. | String | |
postcodes[].lat |
Postcode latitude. | Number | |
postcodes[].lon |
Postcode longitude. | Number | |
postalZones |
Town postal zone. | Array of strings |
Sample
{
"id": 137,
"name": "Київ",
"countrySign": "UA",
"areaId": 23,
"lat": 50.444795,
"lon": 30.528718,
"postcodes": [
{
"postcode": "01001",
"lat": 50.449855,
"lon": 30.523063
}
],
"postalZones": [
"01",
"02",
"03",
"04",
"05"
]
}