Can someone provide the JavaScript code to loop through an API, extract the coordinates/address, and map it?
Here is a simple demonstration of fetching the API data:
const fetch = require("node-fetch");
fetch('url').then(function (response) {
// The API call was successful!
return response.json();
}).then(function (data) {
// This is the JSON from our response
console.log(data);
}).catch(function (err) {
// There was an error
console.warn('Something went wrong.', err);
});