title: Google Maps API - Geometry Encoding - TypeError: a.lat is not a function
body: <p>I have a list of GeoPoints in an array with looks like this:</p>
  
  <pre><code>var coordinates = [[50.7, 6.7], [49.5, 7.0], ...]
  </code></pre>
  
  <p>When I try to use <code>encodePath</code> for minifying the code as <a href="https://developers.google.com/maps/documentation/javascript/reference#encoding" rel="noreferrer">explained here</a>, I get the following error:</p>
  
  <blockquote>
    <p>TypeError: a.lat is not a function</p>
  </blockquote>
  
  <p>My code looks like this:</p>
  
  <pre><code>google.maps.geometry.encoding.encodePath(coordinates)
  </code></pre>
  
  <p>Any ideas?</p>