title: how to get google heat map LatLng with JSON?
body: <p>I want get <strong>google heat map LatLng</strong> with <strong>Json</strong> file<br></p>
  
  <p>This is my google heat map function <br></p>
  
  <pre><code> function initMap() {
  
          map = new google.maps.Map(document.getElementById('map'), {
              zoom: 11,
              center: {lat: 37.782551, lng: -122.445368}
          });
  
          heatmap = new google.maps.visualization.HeatmapLayer({
              data: getPoints(),
              map: map
          });
  
      }
  </code></pre>
  
  <p><br>
  This is my LatLng function , i want instead use getPoints() function JSON file<br></p>
  
  <pre><code>function getPoints() {
          return [
          new google.maps.LatLng(37.782551, -122.445368),
          new google.maps.LatLng(37.782745, -122.444586),
          new google.maps.LatLng(37.782842, -122.443688),
          new google.maps.LatLng(37.782919, -122.442815),
          new google.maps.LatLng(37.782992, -122.442112),
  }
  </code></pre>