谷歌jquery json IP到位置等服务?

时间:2011-05-12 08:26:25

标签: api geolocation

Google是否有任何可以将IP转变为某个位置的服务?

1 个答案:

答案 0 :(得分:1)

尝试google.loader.ClientLocation

ClientLocation具有以下属性:

google.loader.ClientLocation.latitude
google.loader.ClientLocation.longitude
google.loader.ClientLocation.address.city
google.loader.ClientLocation.address.country
google.loader.ClientLocation.address.country_code
google.loader.ClientLocation.address.region