{
"cell_towers":
[
{
"mobile_network_code":"0",
"location_area_code":"6338",
"cell_id":"62291",
"signal_strength":-95,
"age":0,
"mobile_country_code":"460"
},
{
"mobile_network_code":"0",
"location_area_code":"6338",
"cell_id":"62290",
"signal_strength":-101,
"age":1,
"mobile_country_code":"460"
}
],
"host":"maps.google.com",
"version":"1.1.0"
}
返回JSON:
{
"location":
{
"latitude":"31.21485922285714",
"longitude":"121.59990774285711",
"address":
{
"city":"上海市浦东新区郭守敬路276号;上海奥威科技开发公司、科威国际技术转移中心公司、
张江高科技园区热力中心[附近]",
"country":"",
"country_code":"",
"county":"",
"postal_code":"",
"region":"",
"street":"",
"street_number":""
}
},
"access_token":"dummytoken"
}
结论:第三方服务器端可能有限制,每次只接受JSONArray中的第一个元素。如果要想一次性查找附近多个基站的经纬度及所在的地址,就只能编写for循环,一次一次的访问第三方的服务器。
3、个人观点:所谓的三点定位或多点定位,只是让想知道用户当前位置的人多了一个选择而已。三点定位得到的是三个点,并非是一个比较准确的点。