JSFiddle - React, Tailwind, and code Playground
by Semih Muyaoğlu
JavaScript
let city = 81;
$.ajax({
type: "GET",
url: "https://cbsservis.tkgm.gov.tr/megsiswebapi.v3/api/idariYapi/ilceListe/"+ city,
dataType: "json",
success: function (response) {
console.clear();
console.log(response.features.length);
$.each(response.features, function (ind, val) {
//console.log("Kontrol: AttributeType=56&Parent=" + city + "&ParselSorguId="+ val['properties']['id']);
//console.log("Kayit:");
//console.log("********************");
//console.log(val['properties']['id']+ " - " + val['properties']['text'])
});
}
});