Recent site activity

CellID

Query Coordination via Cell ID

posted Dec 7, 2011, 10:00 AM by Yanchun Li

Despite [http://opencellid.org/] collects very limited number of Cell infos in China, Google has plenty of them.

  • Google Way 1
[http://www.google.com/loc/json]

  • Google Way 2 <Tested>
[http://www.google.com/glm/mmap]

>>> ================================ RESTART ================================
>>>
(50.106354, 8.77068)
(42.347564, -71.096439)
(13.743381, 100.562816)
{
  "name": "40.714224,-73.961452",
  "Status": {
    "code": 200,
    "request": "geocode"
  },
  "Placemark": [ {
    "id": "p1",
    "address": "285 Bedford Ave, Brooklyn, NY 11211, USA",
    "AddressDetails": {
   "Accuracy" : 8,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "NY",
         "SubAdministrativeArea" : {
            "Locality" : {
               "DependentLocality" : {
                  "DependentLocalityName" : "Williamsburg",
                  "PostalCode" : {
                     "PostalCodeNumber" : "11211"
                  },
                  "Thoroughfare" : {
                     "ThoroughfareName" : "285 Bedford Ave"
                  }
               },
               "LocalityName" : "Brooklyn"
            },
            "SubAdministrativeAreaName" : "Kings"
         }
      },
      "CountryName" : "USA",
      "CountryNameCode" : "US"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 40.7154779,
        "south": 40.7127799,
        "east": -73.9600584,
        "west": -73.9627564
      }
    },
    "Point": {
      "coordinates": [ -73.9614074, 40.7141289, 0 ]
    }
  } ]
}

{
  "name": "13.749113,100.565327",
  "Status": {
    "code": 200,
    "request": "geocode"
  },
  "Placemark": [ {
    "id": "p1",
    "address": "Thanon Phetchaburi, Bang Kapi, Huai Khwang, Bangkok 10310, Thailand",
    "AddressDetails": {
   "Accuracy" : 6,
   "Country" : {
      "CountryName" : "ประเทศไทย",
      "CountryNameCode" : "TH",
      "Locality" : {
         "DependentLocality" : {
            "DependentLocalityName" : "บางกะปิ ห้วยขวาง",
            "PostalCode" : {
               "PostalCodeNumber" : "10310"
            },
            "Thoroughfare" : {
               "ThoroughfareName" : "ถนนเพชรบุรี Bang Kapi"
            }
         },
         "LocalityName" : "กรุงเทพมหานคร"
      }
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 13.7501556,
        "south": 13.7474577,
        "east": 100.5662607,
        "west": 100.5635628
      }
    },
    "Point": {
      "coordinates": [ 100.5649100, 13.7487933, 0 ]
    }
  } ]
}

(30.5139, 114.419086)

Develop Enviroment

posted Dec 7, 2011, 9:25 AM by Yanchun Li


ADB debugging

F:\Program Files\Android\android-sdk\platform-tools>adb devices
List of devices attached
emulator-5554   device
040399001702XXXX        device

F:\>cd F:\Program Files\Java\jre7\bin
F:\Program Files\Java\jre7\bin>keytool -v -list -alias androiddebugkey -keystore  "D:\Documents and Settings\<username>\.android\debug.keystore" -storepass android -keypass android

Android Tuturial Examples
http://developer.android.com/resources/tutorials/hello-world.html

Initiative

posted Dec 6, 2011, 8:00 AM by Yanchun Li   [ updated Dec 6, 2011, 9:29 AM ]

Physical world and Cognition
  • Physical world: Android Cellid Output
  • Cognition: Online Open Database [http://opencellid.org/cell/map], Retrieve existing Cell ID->Coordination mapping. If null, add it via GPS automatically or manually.

Test of [opencellid.org]
  • The visual view of the database via Gogole Earth: [].

  • Text Query
    • Request: www.opencellid.org/cell/get?key=e239e23c4dfbc11fa1b078b25133ad11&mnc=1&mcc=460&lac=57607&cellid=142999913
    • Reply: <rsp stat="ok"><cell lat="30.5481965" mcc="460" lon="114.324324" cellId="142999913" nbSamples="2" mnc="1" lac="57607" range="6000"/></rsp>
  • The result is checked on Google Earth:
<N 30.5481965,E 114.324324>
.
Implementation Guide:
Via android SDK
  • Cell-ID-Raider --- A demo project:
Considerations:


1-3 of 3