diff --git a/goodbye-graffiti-agent/maps-function/index.js b/goodbye-graffiti-agent/maps-function/index.js index 9a2f0901..16282f3d 100644 --- a/goodbye-graffiti-agent/maps-function/index.js +++ b/goodbye-graffiti-agent/maps-function/index.js @@ -61,7 +61,7 @@ try { var config = { method: 'get', - url: 'https://maps.googleapis.com/maps/api/geocode/json?address=' + location + '&key=AIzaSyBY8Vs6cReQZE4j-e1TILT8IX-AuQ-QZ98', + url: 'https://maps.googleapis.com/maps/api/geocode/json?address=' + location + '&key=YOUR_API_KEY', headers: { } }; @@ -85,7 +85,7 @@ // call companion payload if(channel == "call-companion") { // config static map - var map_img = 'https://maps.googleapis.com/maps/api/staticmap?center=' + formatted_address + '&zoom=14&size=600x300&markers=color:red|' + lat + ',' + lng +'&key=AIzaSyBY8Vs6cReQZE4j-e1TILT8IX-AuQ-QZ98' + var map_img = 'https://maps.googleapis.com/maps/api/staticmap?center=' + formatted_address + '&zoom=14&size=600x300&markers=color:red|' + lat + ',' + lng +'&key=YOUR_API_KEY' payload = { "richContent": [ { diff --git a/goodbye-graffiti-agent/site/views/index.html b/goodbye-graffiti-agent/site/views/index.html index a3f580b2..675f7e99 100644 --- a/goodbye-graffiti-agent/site/views/index.html +++ b/goodbye-graffiti-agent/site/views/index.html @@ -151,7 +151,7 @@

Google Maps Platform

console.log(`Longitude: ` + crd.longitude); console.log(`More or less ${crd.accuracy} meters.`); var latlong = crd.latitude + ',' + crd.longitude; - var url = 'https://maps.googleapis.com/maps/api/geocode/json?latlng=' + latlong + '&key=AIzaSyBY8Vs6cReQZE4j-e1TILT8IX-AuQ-QZ98'; + var url = 'https://maps.googleapis.com/maps/api/geocode/json?latlng=' + latlong + '&key=YOUR_API_KEY'; axios.get(url).then(response =>{ address = JSON.stringify(response.data.results[0].formatted_address);