This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Calculate the center/average of multiple GeoLocation coordinates | |
# Expects an array of array refs: ([lat, long], [lat, long]). | |
# | |
# @url http://stackoverflow.com/a/14231286/538646 | |
# | |
use warnings; | |
use strict; | |
sub PI() { 4 * atan2(1, 1) } |