Skip to content

Commit e69c5e7

Browse files
committed
[fix] Resources
1 parent 4026af9 commit e69c5e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

backend1/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ app.get("/top-cities", async (req, res) => {
114114
const cityDataPromises = cities.map(async (city) => {
115115
try {
116116
const response = await axios.get(
117-
`http://api.waqi.info/feed/${city.name}/?token=8f45e008c92e9c7ae7236be05cfd80103152b2e8`
117+
`http://api.waqi.info/feed/${city.name}/?checkkeys`
118118
);
119119
const geo = response.data.data.city.geo;
120120
const aqi = response.data.data.aqi;
@@ -212,7 +212,7 @@ app.get("/top-citiesLow", async (req, res) => {
212212
const cityDataPromises = cities.map(async (city) => {
213213
try {
214214
const response = await axios.get(
215-
`http://api.waqi.info/feed/${city.name}/?token=8f45e008c92e9c7ae7236be05cfd80103152b2e8`
215+
`http://api.waqi.info/feed/${city.name}/?checkkeys`
216216
);
217217
const geo = response.data.data.city.geo;
218218
const aqi = response.data.data.aqi;

frontend/src/Pages/map/Map.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function Map({ lat, lng }) {
88
initializeMap();
99
} else {
1010
const script = document.createElement('script');
11-
script.src = `https://maps.googleapis.com/maps/api/js?key=AIzaSyANZdRNWC8fTqkV80xgZb8K4L7VPFrDDuY`; // Replace with your Google Maps API key
11+
script.src = `https://maps.googleapis.com/maps/api/js?checkkey`; // Replace with your Google Maps API key
1212
script.async = true;
1313
script.defer = true;
1414
script.addEventListener('load', initializeMap);
@@ -25,7 +25,7 @@ function Map({ lat, lng }) {
2525

2626
const waqiMapOverlay = new window.google.maps.ImageMapType({
2727
getTileUrl: function (coord, zoom) {
28-
return `https://tiles.aqicn.org/tiles/usepa-aqi/${zoom}/${coord.x}/${coord.y}.png?token=8f45e008c92e9c7ae7236be05cfd80103152b2e8`;
28+
return `https://tiles.aqicn.org/tiles/usepa-aqi/${zoom}/${coord.x}/${coord.y}.png?checkkey`;
2929
},
3030
name: 'Air Quality',
3131
});

0 commit comments

Comments
 (0)