Get center f geocodes
| From: | gordonisnz at gmail dot com | Date: | Sun, 10 Apr 2022 02:01:25 +0000 |
| Subject: | Get center f geocodes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-327954@lists.php.net to get a copy of this message | ||
I have the 4 corners of a map, in geocodes. This seems OK, but im not
sure if I add the 2 x longitudes together and divide by 2 and then do
that with Latitudes too, will that give me the center values?
However, I've decided that won't work. if we did that with a town East
of GMT and West of GMT, the center will be in the southern hemisphere
somewhere - not in the UK.
If I get the 4 corners, is there a small script to get the center point?
--
Gordon.