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

A local authority name to code mapper #40

Open
Sparrow0hawk opened this issue May 9, 2023 · 0 comments
Open

A local authority name to code mapper #40

Sparrow0hawk opened this issue May 9, 2023 · 0 comments

Comments

@Sparrow0hawk
Copy link

It looks like we may have to routinely map local authority names to the 3 letter codes used within active travel England. It would be very nice to develop a simple tool that does this mapping simply and robustly.

I envisage it taking at least two arguments: a version and an input string. The version would map to a file (internal to package) that contains local authority name-code mappings where each time it has changed we increment a new version number (would recommend using CalVer). The input string would be for a local authority name on which we either exact (or fuzzy match) to a code. Values that don't match would return NA or None.

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

1 participant