简体   繁体   中英

How to implement Network Triangulation?

I am developing an application in android 2.2 to identify location of user by Network:

1) First:

location= (GsmCellLocation)tm.getCellLocation();

cellId= location.getCid();

lac= location.getLac();

2) Second

wonder "http://www.google.com/glm/mmap" to get latitude and longitude and range.

3) Third

I repeat this step three times to obtain information from three different cells

How can I implement the triangulation? It is possible to perform a mapping between latitude/longitude and xy co-ordinates?

I think I've solved it... many thanks.

  1. I have converted coordinates into radians.

  2. I have changed the latitude/longitude (in radians) to ECEF xyz.

  3. I've done some math to calculate the intersection of three circles.

  4. I've re-converted the coordinates of this intersection, from ECEF to latitude & longitude and subsequently to degrees.

您可以使用得到的三角形的顶点进行线性插值

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM