Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
philwolstenholme committed Nov 9, 2024
1 parent f736a83 commit 55c56da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ SPOT_CLIENT_ID='XXX'
SPOT_CLIENT_SECRET='XXX'
SPOT_REFRESH_TOKEN='XXX'
CLOUDINARY_URL='cloudinary://12345:XXXXXX@XXXXXX'
GOOGLE_MAPS_KEY='XXX'
GOOGLE_MAPS_SECRET='XXX'
GMAP_KEY='XXX'
GMAP_SECRET='XXX'
SITE_URL='https://example.com'
AIRTABLE_KEY='XXX'
MED_COOKIE='XXX'
Expand Down
4 changes: 2 additions & 2 deletions src/data/foursquare.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const getData = async function () {

const places = await json.response.venues.items.map(place => {
place.map = urlSigner.sign(
`https://maps.googleapis.com/maps/api/staticmap?center=${place.location.lat},${place.location.lng}&zoom=13&size=365x182&maptype=roadmap&key=${process.env.GOOGLE_MAPS_KEY}&format=png&visual_refresh=true&map_id=db8ea46f9ea0d213&scale=2`,
process.env.GOOGLE_MAPS_SECRET
`https://maps.googleapis.com/maps/api/staticmap?center=${place.location.lat},${place.location.lng}&zoom=13&size=365x182&maptype=roadmap&key=${process.env.GMAP_KEY}&format=png&visual_refresh=true&map_id=db8ea46f9ea0d213&scale=2`,
process.env.GMAP_SECRET
);

return place;
Expand Down

0 comments on commit 55c56da

Please sign in to comment.