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

wish: Key by province name as well as province code #2

Open
markstos opened this issue Apr 1, 2014 · 0 comments
Open

wish: Key by province name as well as province code #2

markstos opened this issue Apr 1, 2014 · 0 comments

Comments

@markstos
Copy link

markstos commented Apr 1, 2014

I'd like to look up province codes based on the province name.

To avoid making the data structure extra-huge, you might be able to use self-references to avoid making a a second copy of most of the structures. I have not tried this approach, and am not totally sure it's much of win in space savings, but there's a link on self-references in JSON if it's of interest:

http://blog.lo-fi.net/2008/01/json-recursion-making-self-reference.html

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