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 서버에 연결할 수없는 이유는 무엇입니까? –