开发者

How to implement Network Triangulation?

开发者 https://www.devze.com 2023-04-07 11:13 出处:网络
I am developing an application in android 2.2 to identify location of user by Network: 1) First: location= (GsmCellLocation)tm.getCellLocation();

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开发者_JAVA百科 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.


You do linear interpolation with the vertices of the triangle you got.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号