Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #determine #location #ip #address #nodejs
ADD COMMENT
Topic
Name
4+8 =