Yeah the page is http so this isn’t a problem. The console.log gives what should be expected just to see if the data is received
My confusion is surrounding how you can map each location to the map.
The API endpoint is an object which has longitude and latitude properties. How can I “get” these and show them on a map depeni on the latitude and longitude values?
Dont know which map system you’re using, but the term is “markers” in the map lingo, so just google “how to add map markers for your-map-system” (google, mapbox, mapquest, etc.)
In its basic form, a marker just need the lat/long numbers. You can add other stuff to it, popup box, custom icon, custom color, etc… but basically just need a lat/long at the minimum.
Getting very confused here as either .map or .forEach loop is adding all latitude and longitude coordinates for each iteration resulting in an array locations which has repeated latitude and longitude coordinates as shown in the console image above…