Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plot GeoIP data on a World Map

I need a library (preferably written in Python) which is able to take a series of IP addresses (or geographic coordinates) and plots them on a World Map.

I already found this one, but it outputs data as a .svg file and it's simply unable to cope with large data sets.

Please note that I need something which can be downloaded and run locally, so no data uploading to 3rd party web services.

Thanks!

like image 743
Unknown Avatar asked Oct 14 '09 10:10

Unknown


1 Answers

As others have mentioned, you can fetch the locations and write some code to put them on a map, but there's also an easier way to do this.

You can use IPInfo's free Map IPs tool, which will create an interactive map of IP addresses. Here's an example for AWS IP Ranges.

map ips tool preview

You can either copy/paste the IPs or use the tool via cURL. It will process up to 500K IPs.

$ cat ipList | curl -XPOST --data-binary @- "ipinfo.io/map?cli=1"

Disclaimer: I work at IPInfo.

like image 73
Shubham Avatar answered Sep 23 '22 02:09

Shubham