I want to find out an unknown target location (latitude and longitude co-ordinates). There are +3 lat-long known points and for each point a distance in meters to the target location. I found some code on internet like this, this and this but when I put my coordinates it gives this error which I couldn't solve.
z = numpy.sqrt(pow(DistA,2) - pow(x,2) - pow(y,2))
RuntimeWarning: invalid value encountered in sqrt
the coordinates are (lat, lon, radius(m))
40.222167, 28.871361, 50
40.22175, 28.87169, 50
40.222528, 28.872083, 50
Could the error be due to location difference?
DistA
,x
, andy
, and your data has lat, lon, and radius. Try printing the contents of the variables before executing the square root.