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

Create a utility function to convert ZIP codes from database into City, ST format. #43

Closed
magnificode opened this issue Jun 6, 2020 · 4 comments · Fixed by #46
Closed
Assignees
Labels
enhancement New feature or request utility

Comments

@magnificode
Copy link
Member

Zip Codes

One of the primary goals of the RBB site is to ensure that we can quickly and effectively connect people with black owned businesses near them. In order to do this, we do our best to accurately generate location based data for users to filter by.

Currently in the DB we are collecting zip codes of businesses that have a storefront. Some businesses do not have a storefront and are therefore tagged as an "Online" business.

If a business has a storefront, we need to take their zip code, and display it as "City, ST" on the frontend. For example, a business has the zip code of 80219, the front end should display "Denver, CO".

This should be a utility function that we can pass an integer to, and have it return the "City, ST" format.

Explore using https://www.npmjs.com/package/zipcodes - this has features that we would like to leverage in the future as well.

@magnificode magnificode added enhancement New feature or request utility labels Jun 6, 2020
@magnificode
Copy link
Member Author

@brewswain
Copy link
Contributor

Hey, I can get started on making this.

@mbifulco
Copy link
Member

mbifulco commented Jun 6, 2020

Hey @brewswain sorry I didn't see you were going to tackle this! Have at it - I just assigne it to you on trello as well. If you need help, drop me a line on Discord 👍

@brewswain
Copy link
Contributor

Oh sweet, no problem! I think it was actually my fault since I didn't do it from trello first, so thanks!

@racedale racedale linked a pull request Jun 7, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request utility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants