Package: xt Version: 0.9.1-6 Severity: wishlist It would be great if xtraceroute could fetch location information from the data sources available from <URL:http://www.hostip.info/>. The methods available are listed on <URL:http://www.hostip.info/use.html>:
Simple GET That said, there is an easy HTTP oriented API to locate IP addresses and Geocode them. If you don't supply the "?ip=aa.bb.cc.dd" bit, then the ip address lookup of the calling machine will be located instead (here, the aa,bb,cc,dd are decimal digits). If you add &position=true to the end of the URL then latitude and longitude will be returned also. Both HTML and XML formats are supplied for your convenience. http://www.hostip.info/api/get.html?ip=12.215.42.19 Country: UNITED STATES (US) City: Sugar Grove, IL http://www.hostip.info/api/get.html?ip=12.215.42.19&position=true Country: UNITED STATES (US) City: Sugar Grove, IL Latitude: 41.7696 Longitude: -88.4588 http://www.hostip.info/api/get.XML?ip=12.215.42.19 [use the URL above for an example - XML too long to paste below] I suspect the XML method might be the most convinient method, but the text version with position should be easily parsable as well. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-2-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages xt depends on: ii gtkglarea5 1.2.3-2 Gimp Toolkit OpenGL area widget sh ii host 20000331-9 utility for querying DNS servers ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an ii libgdk-pixbuf2 0.22.0-8 The GdkPixBuf image library, gtk+ ii libglib1.2 1.2.10-9 The GLib library of C routines ii libglu1-mesa [libglu 5.0.0-5.1 The OpenGL utility library, libGLU ii libgtk1.2 1.2.10-17 The GIMP Toolkit set of widgets fo ii libx11-6 4.3.0.dfsg.1-12.0.1 X Window System protocol client li ii libxext6 4.3.0.dfsg.1-12.0.1 X Window System miscellaneous exte ii libxi6 4.3.0.dfsg.1-12.0.1 X Window System Input extension li ii mesag3 [libgl1] 5.0.0-5.1 A 3-D graphics library which imple ii traceroute 1.4a12-18 traces the route taken by packets ii xlibs 4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]