Sunday, 25 August 2013

get the geolocation from IP , with "ipinfodb"

get the geolocation from IP , with "ipinfodb"

i know good javascript but totally novice in json and need to do the
following:
get the geolocation from IP , with "ipinfodb" like this response:
OK;;174.88.229.95;CA;CANADA;QUEBEC;MONTREAL;H1A 0A1;45.5088;-73.5878;-04:00
i found many codes for that but all seem to be complicate and long with
more options like saving the results in cookies i want the least necessary
code to retrieve those informations for saving them in cookies and more i
want to care for it my self after.. (i don't like to put code i dont
understand) the best would be a simple function that returns this
information as string or array, like this
function getLocFromIP(IP){
(js + json code)
return result;
}
much thank in advance

No comments:

Post a Comment