Skip to content

Reverse lookup#12

Open
Michaellsterk wants to merge 4 commits intofitnr:masterfrom
Michaellsterk:reverse-lookup
Open

Reverse lookup#12
Michaellsterk wants to merge 4 commits intofitnr:masterfrom
Michaellsterk:reverse-lookup

Conversation

@Michaellsterk
Copy link
Copy Markdown

Adds the ability to get the county or state name from a FIPS code

Can retrieve the county or state name from the FIPS code for them
Making the branch changes as minimal as possible to add functionality
@Michaellsterk
Copy link
Copy Markdown
Author

This PR aims to resolve issue #11

You can also use a two-digit state FIPS code to retrieve a state name. Useful if only the state portion of a FIPS code is known or within the system.
@fitnr
Copy link
Copy Markdown
Owner

fitnr commented May 9, 2025

Exact matching might not be the best solution here. What if the data says Dona Ana County instead of Doña Ana County? What if the user doesn't have "County" (or city, parish, borough, etc) appended?

@Michaellsterk
Copy link
Copy Markdown
Author

Exact matching might not be the best solution here. What if the data says Dona Ana County instead of Doña Ana County? What if the user doesn't have "County" (or city, parish, borough, etc) appended?

I'm doing matching between the FIPS code and then the full county name. Since there can be 4 different ways to refer to a county name it would seem unwieldy to give all of those to a user doing a FIPS to name lookup. Do you think that returning all forms of a name with a lookup, rather than a singular string, would be preferable?

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