Skip to content

Commit

Permalink
Merge branch 'main' of github.com:WWWPiramalFinanceCOM/piramalfinance
Browse files Browse the repository at this point in the history
  • Loading branch information
omprakashgupta1995 committed Oct 15, 2024
2 parents 3d4c1f5 + dfa3151 commit 94a3579
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions blocks/moredetailsaddress/moredetailsaddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,7 @@ async function getReviewRating(placeID) {
return new Promise((resolve, reject) => {
// https://maps.googleapis.com/maps/api/place/details/json?place_id=${placeID}&key=AIzaSyDx1HwnCLjSSIm_gADqaYAZhSBh7hgcwTQ
fetchAPI("GET", `/content/piramalfinance/api/mapapi.json?place_id=${placeID}&key=AIzaSyDx1HwnCLjSSIm_gADqaYAZhSBh7hgcwTQ`) // api for the get request
.then((response) => response.text())
.then((data) => {
const newData = data.replace(/\"/g,'/"')
resolve(newData)
})
.then((response) => response.json())
.catch((error) => console.log(error));

/* fetchAPI('GET', `https://maps.googleapis.com/maps/api/place/details/json?place_id=${setLocationObj.placeid}&key=AIzaSyDx1HwnCLjSSIm_gADqaYAZhSBh7hgcwTQ`).then((res)=>{
Expand Down

0 comments on commit 94a3579

Please sign in to comment.