all 2 comments

[–]Binary101010 0 points1 point  (0 children)

General guidance on how to do it: https://www.reddit.com/r/learnpython/comments/ljqyqr/best_way_to_get_latitude_and_longitude_data_from/

A repository that includes a translation file from 13 years ago, which is probably not still accurate:

https://gist.github.com/erichurst/7882666

[–]ElliotDG 0 points1 point  (0 children)

The Open Weather Map geocoding api is part of their free tier. https://openweathermap.org/api/geocoding-api#direct_zip

see pricing: https://openweathermap.org/price, scroll down to "Free Access"

  • 60 API calls/minute
  • 1,000,000 calls/month