api 地址为http://code.google.com/p/gears/wiki/GeolocationAPI

发送的格式:

                              {
 "location": {
   "latitude": 51.0,
   "longitude": -0.1,
   "altitude": 30.1,
   "accuracy": 1200.1,
   "altitude_accuracy": 10.1,
   "address": {
     "street_number": "100",
     "street": "Amphibian Walkway",
     "postal_code": "94043",
     "city": "Mountain View",
     "county": "Mountain View County",
     "region": "California",
     "country": "United States of America",
     "country_code": "US"
   }
 }
}

返回的格式:              {
 "location": {
   "latitude": 51.0,
   "longitude": -0.1,
   "altitude": 30.1,
   "accuracy": 1200.1,
   "altitude_accuracy": 10.1,
   "address": {
     "street_number": "100",
     "street": "Amphibian Walkway",
     "postal_code": "94043",
     "city": "Mountain View",
     "county": "Mountain View County",
     "region": "California",
     "country": "United States of America",
     "country_code": "US"
   }
 }
}

  得到LAC 和CellId后,其它的就是json解析了;



相关文章:

  • 2021-11-26
  • 2021-07-29
  • 2021-05-22
  • 2021-09-09
  • 2021-08-29
猜你喜欢
  • 2021-09-10
  • 2021-10-05
  • 2022-12-23
  • 2021-06-13
  • 2022-01-19
相关资源
相似解决方案