Skip to content

PYTHON or JAVASCRIPT: get_waste_pickup_day function (includes recycling) #18

Open
@ssciere

Description

@ssciere

The goal of the get_trash_pickup_day function is to return the user's trash pick up day and possibly a link where they can obtain their full recycling schedule

The function will be passed the street_address and zipcode of the user
user's address will be verified prior to being passed to the function
completed code can be added here or in a file named get_waste_pickup_day

Since recycling pickup is every other week and therefore hard to summarize in a few words, we could simply add a note in the template under trash pick up day that says:
"Recycling is picked up on this day every two weeks, please visit for a full schedule."

Here are the links for the full schedules:

link for Durham city residents:
https://durhamnc.gov/3025/Find-Collection-Day-Holiday-Schedule-Cal

link for Durham country residents:
https://www.dconc.gov/government/departments-f-z/general-services/solid-waste-recycling-and-litter-control#

Perhaps we could find a way to pass the correct link (city or county) based on user's address? If not, we could always just hard code the city link in the HTML as it will eventually redirect Durham County residents to the county link as needed.

Hopefully this makes sense and seems like a good approach. Other approaches are more than welcome!

Thanks for working on StreetWise!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions