2016-12-21 4 views

答えて

3

はい、すべての詳細については、Chromeブラウザでhttps://developers.google.com/web/fundamentals/native-hardware/user-location/をご覧ください。

if (navigator.geolocation){ 
    navigator.geolocation.getCurrentPosition(function(position){ 
    console.log(position.coords.latitude, position.coords.longitude); 
    }); 
} 

ユーザーは、自分の所在地を開示することに同意する必要があります。

関連する問題