Search code examples
java-melatitude-longitude

Does getting a Cell id of mobile device will work to get accurate position of mobile phone in j2me


If I get the cell id
Will it work to get the exact location of the mobile devices through j2me programming?

I got to know how to get cell id by this link:
Can I fetch position of mobile device in j2me having no GPS service using information from cell tower

But whether to get location accurate is still a question?


Solution

  • One Single cell is not enough to get you the accurate location. you need at least 3 different cell to get a location as accurate as GPS

    What the cell information can do for you is give you a good information of the area and measurements

    See API Information http://www.opencellid.org/api

    How To

    1. Get a cell ID and save the distance
    2. When the user cell changes .. get the distance using same API
    3. As soon as you are able to get an additional cell information start triangulation

    Triangulation http://en.wikipedia.org/wiki/Triangulation

    1. Calculate distance between P1 and P2.
    2. Calculate the distance between P1 and the center point of the new n-sphere
    3. Calculate the ratio new n-sphere/d. (Used to find per-dimension distances between P1 and the centerpoint of the new n-sphere.
    4. Calculate square of radius
    5. Calculate center point of new n-sphere
    6. Calculate distance between P1 and P2 on this dimension
    7. Calculate distance between P1 and the center point of the new n-sphere on this dimension
    8. Calculate the coordinate of the center point of the new n-sphere on this dimension.

    Have only implemented the calculation on client side PHP not j2me ...

    Thanks :)