Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to nottingham_city_gov_uk to support new api and data structure. #1141

Merged
merged 2 commits into from
Aug 14, 2023

Conversation

jwhitbread
Copy link
Contributor

It seems they have updated their api and the data that is returned. Here's what it looks like now. I think this has made it much easier as it now provides the datetime of when the bin day is :).

{
  "uprn": "000000000000",
  "address": "xxxxxxxxxxxx",
  "postcode": "xxxxxxxxxxx",
  "binTypes": [
    "Waste",
    "Recycling",
    "Garden"
  ],
  "nextCollections": [
    {
      "collectionType": "Waste",
      "collectionDate": "2023-08-10T07:00:00",
      "collectionDay": "Thursday"
    },
    {
      "collectionType": "Recycling",
      "collectionDate": "2023-08-17T07:00:00",
      "collectionDay": "Thursday"
    },
    {
      "collectionType": "Garden",
      "collectionDate": "2023-08-17T07:00:00",
      "collectionDay": "Thursday"
    }
  ],
  "hasWaste": true,
  "hasRecycling": true,
  "hasGarden": true,
  "hasFood": false,
  "isCommunal": false,
  "nextBinIsWaste": true,
  "nextBinIsRecycling": false,
  "nextBinIsGarden": false,
  "nextBinIsFood": false,
  "recyclingWeek": "Recycling Week A",
  "nextCollectionType": "Waste",
  "nextCollectionDate": "2023-08-10T07:00:00",
  "oldStyleCategoryForMyProperty": "waste-hasgarden",
  "collectionDay": "Thursday"
}

@5ila5 5ila5 merged commit 6b16a4b into mampfes:master Aug 14, 2023
1 check passed
@5ila5
Copy link
Collaborator

5ila5 commented Aug 14, 2023

Thanks for your contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants