I have (minLatitude,maxLatitude) and (minLongitude,maxLongitude) pairs in decimal degrees, and I need to calculate the mean point of the box those pairs define, how can I get their average latitude/longitude? I get a pretty big offset when the simple arithmetic mean is calculated.
Thanks!
The solution suggested by Pierre-Luc Champigny is wrong.
In the image bellow you can see two lines:
Half length of each line in green, the other half in blue.
You can see that the center of both lines is not the same point, and both centers are not the center of the polygon.
In order to find the center of the polygon:
To get these values you can use the link suggested by Pierre-Luc Champigny, but:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With