get my ip address location node js code example
Example: determine location of ip address nodejs
/**
* Determine location of ip address [NODEJS]
*/
//freegeoip.net/{format}/{IP_or_hostname}
//Sample GET http://freegeoip.net/json/207.97.227.239 :
{
ip: "207.97.227.239",
country_code: "US",
country_name: "United States",
region_code: "TX",
region_name: "Texas",
city: "San Antonio",
zip_code: "78218",
time_zone: "America/Chicago",
latitude: 29.4889,
longitude: -98.3987,
metro_code: 641
}