![]() |
|
Demo token 93a1f6fc-3fa2-40ee-9fae-0ff301df50f0 (The token is valid on average for about three days).
Register and receive a token to access the API. The token will be available in your personal account.
date of update: 2024-12-21 06:01
quantity: 728
<?php
// Demo token. (Replace it with your token).
$token = '93a1f6fc-3fa2-40ee-9fae-0ff301df50f0';
$url = 'https://wildtracks.pro/api/administrative_division/all/al/json/'.$token;
// We receive confirmation via the LINK
$jsonData = file_get_contents($url);
// Checking if the data was received successfully
if ($jsonData === false) {
die('Error receiving data from the URL');
}
// Converting JSON to an associative array
$dataArray = json_decode($jsonData, true);
// Checking if it was possible to convert JSON to an array
if ($dataArray === null) {
die('Error decoding JSON');
}
// Output an array
echo "<pre>";
print_r($dataArray);
echo "</pre>";
?>
Type:
Third-order administrative division (ADM3 ) (A subdivision of a second-order administrative division) | 374 |
Administrative division (ADMD ) (An administrative division of a country, undifferentiated as to administrative level) | 224 |
Historical second-order administrative division (ADM2H ) (A former second-order administrative division) | 36 |
Fourth-order administrative division (ADM4 ) (A subdivision of a third-order administrative division) | 19 |
Independent political entity (PCLI ) | 1 |
First-order administrative division (ADM1 ) (A primary administrative division of a country, such as a state in the United States) | 12 |
Zone (ZN ) | 1 |
Second-order administrative division (ADM2 ) (A subdivision of a first-order administrative division) | 61 |
Description of fields:
name | Name |
alternatenames | Alternative names |
latitude | Estimated latitude (wgs84) |
longitude | Estimated longitude (wgs84) |
feature_code | Type of a country, state, region... (link) |
modification_date | Date added or modified |
country_code | ISO-3166 2-letter country code, 2 characters |
dem | Digital elevation model, srtm3 or gtopo30, average elevation of 3''x3'' (ca 90mx90m) or 30''x30'' (ca 900mx900m) area in meters, integer. srtm processed by cgiar/ciat. |
timezone | The iana timezone id (link) |