2011-05-12 4 views
1

Googleには、IPを場所に変換できるサービスはありますか?Google jquery json IPなどのサービス?

+1

http://stackoverflow.com/questions/3233767/how-to-load-google-clientlocation-api-without-loading-the-whole-google- maps-api – mizo

+0

はlocalhostで何も返しません。localhostでも動作しますか?リンク –

答えて

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 
+0

のおかげで、これはローカルホスト上で動作しますか?それは何も返しません。 –

+0

はい、スクリプトを実行しているクライアントがGoogleのサーバーに接続できる限り動作します。 – mizo

+0

Googleから読み込むには良いリンクがあるのですか、なぜ私はGoogleサーバーに接続できませんか? –

関連する問題