MikeMike1
8 years agoQrew Cadet
Lat/Long
I need to build a Heat Map for our executive team displaying saturation of certain geographically defined areas. Sadly, QB doesn't allow for a heat map organically, and most tools require the use of ...
async function geocodeAddress(address, key) {Returns JSON which includes the lat/lon values::
let response = await fetch('https://maps.googleapis.com/maps/api/geocode/json?address=${address}');
let data = await response.json();
return data;
}
var address = "1600 Amphitheatre Parkway, Mountain+View, CA";
var key = "";
geocodeAddress(address)
.then(data => console.log(JSON.stringify(data, null, " ")));