Refer to:
- Get Network info using TelephonyManager
- Get cell location on a GSM phone, getCellLocation()
Last post introduce "Convert cellLocation to real location (Latitude and Longitude)" using api at "http://www.google.com/glm/mmap". But it's a non-public, non-official api, as I know.
It's an open source project, OpenCellID, aiming to create a complete database of CellID worldwide, with their locations. It provides free access to tools, data to not only create this database, but also retreive location informations.
Here is a example how to get location with the following cell id:
- mcc = 454
- mnc = 04
- cellid = 43191
- lac = 7500
http://www.opencellid.org/cell/get?mcc=454&mnc=04&cellid=43191&lac=7500
![OpenCellID example OpenCellID example](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEOCcEtM2-hVLUank10cM1rO38LjWtT6YRLsLO-1JcWlNggmo6TlNLSe2oC4zGx_WNibAJ33LmboafVT3q0uVUNtLIR2LcGmjRLScOGJ7o1g8C0LuW0OYbDhI3bEbZxcdyyuLhqL52Jh4c/s400/OpenCellID_01.png)
Alternatively, you can send with "fmt=txt" to request result in simple text format.
http://www.opencellid.org/cell/get?mcc=454&mnc=04&cellid=43191&lac=7500&fmt=txt
![OpenCellID example in text format OpenCellID example in text format](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRYCBUCHHYRhdxaUhlfm4Wt0wx_K2TPQB1EjnLgIYemG2X77mV1GqlC797nbIiVMEgLN_6n-PHbrk0AG7o_A6bt-hs2_fsFeVZP5CcKJQrlIsv7l8rFuJQyAxc3kpcVLy7QPMIahHc9g8b/s400/OpenCellID_02.png)
In next post, I will have a example describe how to Get location of Cell ID, from opencellid.org using HttpGet().
No comments:
Post a Comment