3

我向 google geolocation api 发送了两个请求:https://www.googleapis.com/geolocation/v1/geolocate?key=[mykey]

第一个请求:

{"Carrier":"T-Mobile","CellTowers":[{"Age":0,"CellId":"39627456","LocationAreaCode":"40495","MobileCountryCode":"310","MobileNetworkCode" :"260","SignalStrength":-95,"timingAdvance":0}],"HomeMobileCountryCode":"310","HomeMobileNetworkCode":"260","RadioType":"gsm"}

第二个要求:

{"Carrier":"T-Mobile","CellTowers":[{"Age":0,"CellId":"4912","LocationAreaCode":"20516","MobileCountryCode":"460","MobileNetworkCode" :"00","SignalStrength":-60,"timingAdvance":55555}],"HomeMobileCountryCode":"460","HomeMobileNetworkCode":"00","RadioType":"gsm"}

奇怪的是它们都返回相同的地理位置

{“位置”:{“纬度”:39.90403,“lng”:116.407526},“准确度”:18000.0}

有谁知道为什么会这样?是谷歌地理定位数据库的错误吗?我怎样才能获得(大量真实的)测试数据?

4

1 回答 1

0

尝试删除数字周围的引号“”,我没有这个的 API 密钥,但它可能是它。

例如您的第一个请求:

{"Carrier":"T-Mobile","CellTowers":[{"Age":0,"CellId":39627456,"LocationAreaCode":40495,"MobileCountryCode":310,"MobileNetworkCode":260,"SignalStrength" :-95,"timingAdvance":0}],"HomeMobileCountryCode":310,"HomeMobileNetworkCode":260,"RadioType":"gsm"}

于 2014-02-27T12:23:31.960 回答