Make WGS84 box to fit a circle of radius R

30 Views Asked by At

Let's assume I have a WGS84 box given by its north-east and south-west latitude and longitude.

I want to make sure that a circle of radius R fits inside that box, i.e. if the box is too small, it should be enlarged to exactly fit the circle.