Any way to do this within processing?
I'd love it if I could then superimpose this on a map... hmm
EDIT: Now with more code!
I'd love it if I could then superimpose this on a map... hmm
EDIT: Now with more code!
- // get request for ip info, save to string
String[] info = loadStrings("http://freegeoip.net/csv");
// let's break up that string into useful stuff eh?
String[] list = split(info[0], ',');
// Here is the formatting for list:
// 0: IP address
// 1: Country abbreviation
// 2: Country
// 3: Region abbreviation
// 4: Region
// 5: City
// 6: Zip
// 7: Latitude
// 8: Longitude
// 9: No idea
//10: Area Code
// To get this on a Google Map or something, I probably just need 7 and 8.
println(list);
1