Skip to content

Commit

Permalink
Merge pull request #563 from WWWPiramalFinanceCOM/prod-bug-fixes-12-1…
Browse files Browse the repository at this point in the history
…0-2024

Prod bug fixes 12 10 2024
  • Loading branch information
nky11 authored Dec 10, 2024
2 parents 1bd7957 + a5b69fe commit 416780e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions blocks/moredetailsaddress/moredetailsaddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,17 @@ function returnLatLan() {
});
}

async function getReviewRating(placeID) {
const response = await fetchAPI("GET", `/content/piramalfinance/api/mapapi.json?place_id=${placeID}&key=${GOOGLE_MAPS_API_KEY}`);
async function getReviewRating(placeIDs) {
let requestObj = {
requestJson : {
placeIds: "",
googleKey : ""
}
};
requestObj.requestJson.placeIds = placeIDs;
requestObj.requestJson.googleKey = GOOGLE_MAPS_API_KEY;
const response = await fetchAPI("POST", '/content/piramalfinance/api/mapapi.json', requestObj);
// const response = await fetchAPI("GET", `/content/piramalfinance/api/mapapi.json?place_id=${placeID}&key=${GOOGLE_MAPS_API_KEY}`);
// const response = await fetchAPI("GET", `https://maps.googleapis.com/maps/api/place/details/json?place_id=${placeID}&key=${GOOGLE_MAPS_API_KEY}`);
return response.json();
}
Expand Down

0 comments on commit 416780e

Please sign in to comment.