HTML5 browsable IP map inspired by http://xkcd.com/195/
JavaScript Python HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
downloads
.nojekyll
ReadMe.md
color.js
geography.txt
hilbert.js
index.html
ip_data.js
ip_map.js
logo.png
update_data.py

ReadMe.md

IpMap is a browsable Hilbert curve showing geographic locations of IPv4 addresses. It was inspired by xkcd 195, Map of the Internet. An interactive demo is available.

Details

Hilbert curves are described on Wikipedia.

Each square on the curve has a hue giving the majority location of its IP addresses, and a saturation giving the proportion of this square assigned to this location.

GeoIp data is from MaxMind, and country/region/continent mapping is from cloford.com.

Hack

It's pure HTML5, so you can launch it locally: clone the Github repository and open index.html.

The HTML part is minimal, and the javascript part is fairly decoupled: the HilbertCurve function is reusable (it accepts any DataSource), and the IpMap function is built from HilbertCurve and a IpCountryDataSource.