// https://api.opencagedata.com/geocode/v1/json?q=<LAT_VALUE>,<LON_VALUE>&pretty=1&key=API_KEY
fetch("https://api.opencagedata.com/geocode/v1/json?q=52.5,13.4&pretty=1&key=API_KEY")
.then(response => {
return response.json();
})
.then( data => {
console.log({ data });
})
.catch(err => {
console.error(err);
});