I want to make a fun website tracking the energy transition that counts down as refineries go offline and I wanna list them all.

  • AltMaarri [they/them]@hexbear.net
    link
    fedilink
    English
    arrow-up
    12
    ·
    edit-2
    1 day ago

    No doubt you’re preparing a report for schoolwork. I guess you could go to a website like this and fetch the data from their controller. Like this [careful: 4MB json file]. Check the format, I just did and it is trivial; though of course who knows how complete their list is.

    At first glance they’re using the mapbox API which should make it slightly more complex but they also included their features in this file; again after a quick glance only, you won’t get the barrels per day you see on the website itself without going through their mapbox calls though.

    You might have to anyway to distinguish refineries from other features (such as those points and lines).