tags:

views:

59

answers:

3

I'm looking for a URL that I can use with curl that will take on input an IP address and have it return the geographical location of the IP. Anybody know of one?

Thanks.

A: 

As far as I know, curl isn't capable of geo-locating.

You can however use curl to download the return values of the hostip.info api.

Linus Sjögren
A: 

http://www.ipinfodb.com/

chaos
+1  A: 

See http://freegeoip.appspot.com/ Their service features a simple call and can return results in xml, json or csv formats

Mike Clark
Thanks Mike C. I tried it and it works.