Geoip plugin: how to detect country from ip

hi…

can someone help me out to understand how the country is identified from the ip address in geoip.inc file in geoip plugin…

especially the methods _geoip_seek_country() and _get_org()

Good news: GeoIP is now integrated in Piwik, enabling Accurate Visitors Geolocation in your Analytics reports. To enable GeoIP go to the Settings > Geolocation admin page, and follow the short instructions.

You can also get an even more accurate Country & City Database from here to enjoy top accuracy in detecting your visitors locations.

See also the documentation about Geolocation - Analytics Reports in Piwik.