Skip to content

Commit

Permalink
Site implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiasacchi committed Aug 18, 2023
1 parent 7714831 commit 925f4b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions goodbye-graffiti-agent/maps-function/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: { }
};

Expand All @@ -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": [
{
Expand Down
2 changes: 1 addition & 1 deletion goodbye-graffiti-agent/site/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ <h2>Google Maps Platform</h2>
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);
Expand Down

0 comments on commit 925f4b8

Please sign in to comment.