title: How to read Firestore Geopoint coordinates in Cloud Functions
body: <p>After I have retrieved the firestore document in cloud functions, I need to be able to extract the lat and long of the field that I already know is a location. How do I do this?</p>
  
  <p>This doesn't work:</p>
  
  <pre><code>if (element === "location" &amp;&amp; documentAfter[element] !== undefined){
              console.log("location", documentAfter[element], documentAfter[element].latitude)
          }
  </code></pre>