ipgeomap.py is a small Python library for mapping given IP addresses to geographical locations. It identifies City, Country, and GPS location. Furthermore, it can determine the geographical distance in meters between IP addresses, and find all IP addresses of a candidates list within a given radius in meters around a given center IP. Finally, it maps all locations and IPs within a given radius by a circle to an folium earth map via html, which can be watched with a browser.
- The library uses a MaxMind GeoLite2 City database file called
GeoLite2-City-Test.mmdb(not included in this repository). You can find their example database in their GitHub repository https://github.com/maxmind/MaxMind-DB, and more information and full up-to-date data on their website https://www.maxmind.com, with tutorial https://dev.maxmind.com/geoip/geolite2-free-geolocation-data.
- Usage of
ipgeomap.py, and visit of external links, on your own risk. The author doesn't take any responsibility for possible damage.
- Please check out the file
ipgeomap.pyas example for how to use it. Just runpython ipgeomap.py.
- The code was written in pair-programming with ChatGPT. It contributed some basic structures, which were then put together by the author to the final library.