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

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

Open
ssciere opened this issue Nov 14, 2019 · 0 comments
Open
Assignees

Comments

@ssciere
Copy link
Collaborator

ssciere commented Nov 14, 2019

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!

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

No branches or pull requests

2 participants