Open dpupkov opened 4 months ago
I was looking to get Lane Cove added, so glad to see someone's beaten me to it!
Just a note on the second URL, seems the first part of the pageLink
can be ommited (i.e. /$b9015858-988c-48a4-9473-7c193df083e4$
) - so a URL like the following could be used instead to retrieve the same JSON response:
@FuzzyMelon94 I have ended up creating time-based schedule, as our council has a nice weekly / two weekly cadence:
@dpupkov Yeah I've got mine set up with repeating events in a "waste collection" calendar, with TrashCard to display countdowns on dashboards - works well because we can throw other events in there too, like council cleanups we've booked.
Municipality / Region
Lane Cove Municipality, NSW, Australia
Collection Calendar Webpage
https://www.lanecove.nsw.gov.au/Services/Waste-and-Recycling/Waste-Collection-Calendar
Example Address
17 Moore ST LANE COVE WEST, 2066
Collection Data Format
As html on a webpage
Additional Information
Seems like two requests: First is HTTP GET request to get address https://www.lanecove.nsw.gov.au/api/v1/myarea/search?keywords=17%20Moore%20ST%20LANE%20COVE%20WEST response in json:
Second is retrieving schedule based on the location ID request. This is done with HTTP GET request https://www.lanecove.nsw.gov.au/ocapi/Public/myarea/wasteservices?geolocationid=c827fdc6-bce5-4791-b11e-c1a831071646&ocsvclang=en-AU&pageLink=/$b9015858-988c-48a4-9473-7c193df083e4$/Services/Waste-and-Recycling/Waste-Collection-Calendar**** (potentially pageLink is optional). Response in json:
Something like this potentially should work to parse the response: