title: Google Maps Encoded Polyline PHP Function
body: <p>I am looking for a PHP function that encodes an array of points into an encoded polyline.</p>
  
  <p>The algorithm is described here:</p>
  
  <p><a href="http://code.google.com/apis/maps/documentation/utilities/polylinealgorithm.html" rel="nofollow">http://code.google.com/apis/maps/documentation/utilities/polylinealgorithm.html</a></p>
  
  <p>I can't seem to find any way to do this and I have searched all over to no avail.</p>