I am developing a node.js/javascript application where I would have dozens of beacons in a row (positions known), which gives me their distances to specific object (3 or 4 distances per object). The idea is to trilaterate those distances to infer the coordinates of this object.
I have technical background but I am not an expert in geometry nor cartography. I have check a lot of articles about trilateration. Most interesting:
I have different ideas:
أكثر...
I have technical background but I am not an expert in geometry nor cartography. I have check a lot of articles about trilateration. Most interesting:
- Trilateration algorithm for n amount of points
- Trilateration using 3 latitude and longitude points, and 3 distances
I have different ideas:
- Using wikipedia's article is the easiest way. I have a pair of javascript libraries that perform this algorithm (cannot put links due to constraints in stackexchange). Problem: does not take into account error in measurements, so many times equation does not give you a solution (approximate value would be enough...)
- Using Mathematica: cannot do that. Is there any other C++ or javascript/nodejs library that performs those calculations?
- Using postgis: I think I can create a circular stripe (donut) per beacon distance, using ST_BuildArea. Then intersect those areas and calculate the centroid. Do you think this would be a proper approach using geometry - not geography-? Fast enough for 12 positions/second?
أكثر...