how to convert from longitude and latitude to country or city?

后端 未结 5 1780
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 03:51

I need to convert longitude and latitude coordinates to either country or city, is there an example of this in python?

thanks in advance!

5条回答
  •  自闭症患者
    2021-01-31 04:34

    This is called reverse geocoding. There is one library I could find in Python which is focused on this: https://github.com/thampiman/reverse-geocoder

    Some related questions with other ideas:

    • Offline Reverse Geocoding in Python
    • Reverse Geocoding Without Web Access

提交回复
热议问题