这是来自http://smart-ip.net/geoip-json/178.44.164.112的回报
{“来源”:“智能ip.net”,“主机”:“178.44.164.112”,"lang":"en",“countryName”:“俄罗斯”,"countryCode":"RU",“城市”:“Orenburg”,“区域”:“Orenburg”,“纬度”:“51.7227”,“经度”:“55.3637”,“countryCode”
以下是类似服务的回报,http://freegeoip.net/json/178.44.164.112
{"ip":"178.44.164.112“、"country_code":"RU”、“country_name”:“俄罗斯联邦”、"region_code":"30“、”region_name“:”哈巴罗夫斯克“、”城市“:”奥伦堡“、”邮政编码“:”“、”纬度“:53.3、”经度“:141.4667、"metro_code":"”、“区域”:“}”}
智能ip.net服务为我提供了一个时区(用于PHP的set_timezone)。然而,Freegeoip没有。是否有任何方法使用自由地理Is的数据来获取用户的时区?
发布于 2013-09-25 15:31:26
freegeoip.net似乎没有时区数据。但是,您可以获取纬度和经度,并使用one of the methods described here查找时区。
https://stackoverflow.com/questions/19005857
复制相似问题