Geocode example:
fetch("https://msascanner.com/api/geocode.php?key=YOUR_API_KEY&q=Istanbul")
.then(response => response.json())
.then(data => console.log(data));
Reverse geocode example:
fetch("https://msascanner.com/api/reverse.php?key=YOUR_API_KEY&lat=40.1828&lon=29.0673")
.then(response => response.json())
.then(data => console.log(data));