Skip to content

Getting alpha_2 code #12

Description

@hadhoke

It would be nice to be able to retrieve country alpha_2 code along with country name.
Something like this:

result=LocationBaseModel(lat=40.77488420403987, lon=-73.97077035729478, name='New York', alpha_2='US', admin1='United States', admin2='New York')

It would make it easier to translate country name in user language.
It would also make it easier to get country details using pycountry lib that works with alpha_2 codes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions