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.
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.