For basic geo-spacial detail, try a simple dns query ...
ip.address.zz.countries.nerd.dk and the resulting alias (less the zz) tells you where the domain is
e.g.
nslookup 80.82.140.1.zz.countries.nerd.dk
Non-authoritative answer:
Name: zzuk.countries.nerd.dk
= UK
For advanced geo data you will need to use a programming language tool like
Perl IP::Country
or something that parses a geo-database like:
Maxmind Geo IP Country CSV