I'll put this in an answer. These are the points you have as coordinates (boundaries) for your map:
----------------- (max lat, max lon)
| |
| |
|
| y
|
| |
| |
(min lat, min lon) ------ x ------ (min lat, max lon)
The function in the answer I referenced provides the distance between 2 points. So to compute x
you need the distance between point (min lat, min lon)
and point (min lat, max lon)
. You can compute y in a similar way.
For example point at bottom left is (lat1, lon1)
and bottom right is (lat2, lon2)
-> using the function you get x
.
Same thread, optimized code.
Now if you just need this information once without actually programming anything, this is not so much a question for SO but you may use this link to get the numbers.