Navigation Menu

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

Retrieving subdivisions #68

Closed
Ironholds opened this issue Dec 12, 2014 · 2 comments
Closed

Retrieving subdivisions #68

Ironholds opened this issue Dec 12, 2014 · 2 comments

Comments

@Ironholds
Copy link
Contributor

Subdivisions are not stored in the same format as, say, registered countries (presumably because you can have multiple subdivisions). The output of the command-line client doesn't make clear what I'd plug in to MMDB_get_value to grab a specific subdivision - and neither do the examples in the docs.

@oschwald
Copy link
Member

You just use the number as a string, e.g., "subdivisions", "0", "iso_code", NULL.

@Ironholds
Copy link
Contributor Author

Aha; gotcha. Ta!

oschwald added a commit that referenced this issue Dec 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants