Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do geocoding offline in python3?

Is there a way to take a properly formatted address and geocode it, without using an online geocoder? I have a file with several thousand address and would like to geocode them, but due to api restrictions on request velocity/limits... it is very inconvenient to use online sources

I've looked into several geocoding libraries, but they all seem to use online sources. Geonames was the most promising, but it seems to be made for python 2

Note: There exists a post titled similarly, but it was a mislabeled POI question and answered accordingly.

like image 615
Alter Avatar asked Sep 02 '25 15:09

Alter


1 Answers

You can use the python library geocoder and use your own instance of the Open Street Maps Nominatim.

Please check the Nominatim Install Guide on how to install nominatim.

like image 111
sergiogarciadev Avatar answered Sep 05 '25 03:09

sergiogarciadev