Return a point approximating the center of the given region. For a point, this is the point itself. For a circle, it is the center point. For a box, it is the point whose latitude is half-way between the northern and southern limits and whose longitude is half-way between the western and eastern limits. For polygons, complex polygons, and linestrings, an approximate centroid is returned. This approximation is rough, and useful for quick comparisons.
|$region||A geospatial region.|
Options. The default is ().
// Approximate center of London Zoo geo.approxCenter( cts.polygon([ cts.point(51.5361190,-0.1590335), cts.point(51.5366529,-0.1568234), cts.point(51.5372001,-0.1537657), cts.point(51.5372868,-0.1527464), cts.point(51.5334561,-0.1509440), cts.point(51.5332359,-0.1517808), cts.point(51.5348643,-0.1584756), cts.point(51.5355250,-0.1592481), cts.point(51.5360522,-0.1590765) ])); ==> cts.point(51.535511,-0.15516526)