这是来自的回报http://smart-ip.net/geoip-json/178.44.164.112
:
{"source":"smart-ip.net","host":"178.44.164.112","lang":"en","countryName":"Russia","countryCode":"RU","city" :"Orenburg","region":"Orenburg","latitude":"51.7227","longitude":"55.3637", "timezone":"Europe/Samara" }
这是类似服务的回报http://freegeoip.net/json/178.44.164.112
:
{"ip":"178.44.164.112","country_code":"RU","country_name":"俄罗斯联邦","region_code":"30","region_name":"哈巴罗夫斯克","city":"奥伦堡","zipcode":"","latitude":53.3,"longitude":141.4667,"metro_code":"","areacode":""}
smart-ip.net 服务为我提供了一个时区(用于 PHP 的 set_timezone)。然而,Freegeoip 没有。有没有办法使用freegeoip的数据来获取用户的时区?