title: How to use google maps node api using async await
body: <pre><code>The following is example taken from the Google Maps node module
  
  function doSomeGeoCode() {
  
    const googleMapsClient = require('@google/maps').createClient({
      key: 'your API key here',
      Promise: Promise
    });
  
    googleMapsClient.geocode({address: '1600 Amphitheatre Parkway, Mountain 
     View, CA'})
    .asPromise()
    .then((response) =&gt; {
      console.log(response.json.results);
    })
    .catch((err) =&gt; {
      console.log(err);
    });
  }
  </code></pre>
  
  <p>How do I call the doSomeGeoCode using async and await.  Also I need to invoke another function once I have received the response. Please suggest</p>