現在のデバイスの位置を取得するために gsm セル データを使用しています。これを行うには、Google Maps Geolocation APIを使用します。必要な JSON パラメータの最初の部分では、すべてのフィールドがオプションのようです (URL: https://www.googleapis.com/geolocation/v1/geolocate?key=API_key ):
{
"homeMobileCountryCode": 310,
"homeMobileNetworkCode": 410,
"radioType": "gsm",
"carrier": "Vodafone",
"cellTowers": [
// See the Cell Tower Objects section below.
],
"wifiAccessPoints": [
// See the WiFi Access Point Objects section below.
]
}
最初の 4 つのパラメーター homeMCC、homeMNC、無線タイプ、キャリアは精度に影響しますか? または応答時間?違いはわかりませんでした。