Creating a tool where users can enter their postcode to check for nearby windfarms is my current project. I have organized the data by named locations, and it's important to maintain that structure due to the specific API mapping tool I am using. Here is an example of the data:
Location | Windfarm name |
---|---|
Copeland | Sustainable Keswick |
Crewe and Nantwich | Nantwich Hydro |
Derbyshire Dales | Matlock Community Energy Project |
Derbyshire Dales | Derby Dales Community Energy |
I've previously built a tool using keyed JSON data, but encountered limitations as there was only one value per location, like this:
"Copeland": {
"hasWindfarm": "Yes",
}
This time, I aim to provide information about each individual windfarm in multiple locations. However, my usual setup is struggling with handling multiple locations and windfarms.
My query revolves around the most efficient way to organize and retrieve JSON data. As a novice in JSON and Javascript, any advice on best practices would be greatly appreciated.