Computing latitude longitude center point of a Polygon in PHP

Posted by gacrux on Stack Overflow See other posts from Stack Overflow or by gacrux
Published on 2010-06-10T01:03:04Z Indexed on 2010/06/10 1:12 UTC
Read the original article Hit count: 347

I have a set of points (stored as lat/lon) for a polygon, I want to compute the lat/lon center point of the polygon in PHP.

Basically to do the same thing as the getCenter() function in Google Maps LatLngBounds.

Any ideas on how I can achieve this?

© Stack Overflow or respective owner

Related posts about php

Related posts about coordinates