Trilateration example in java

johns4ta picture johns4ta · Jun 12, 2012 · Viewed 7.7k times · Source

I am currently working on a program that utilizes RSSI to determine location based on signal strength. Does anybody know where a working java example is of trilateration? I couldn't find any online.

The program will basically need to take in 3 distances, which are the distances derived from the RSSI's and then the latitude and longitude of the three points and then determine the user's location using 2 dimensional trilateration (I'm ignoring the height of each beacon for now).

I saw a Python one on here, but I don't know Python well enough to understand it.

Answer

johns4ta picture johns4ta · Jun 13, 2012

For future reference for anybody with the same problem.

I just used the link Girish provided. http://code.google.com/p/talking-points-3/source/browse/trunk/WifiPosition/src/TalkingPoint/thejoo/Trilateration.java?r=109

but be aware you have to account for when coordinates are coplanar as this isn't accounted for in the code.