I am using a map that allows selecting a bounding box on a map and returns (lat, lon) for top right, and bottom left.
I am using couchbase geo spatial queries and they only support top_left bottom_right coordinates.
What's the formula to convert latitude and longitude values of two opposite corners from a rectangle from top_right bottom_left to top_left bottom_right?