implement Google Maps reviews API integration and dynamic testimonial slider component

This commit is contained in:
Alaguraj0361 2026-04-03 19:53:52 +05:30
parent e725e798e9
commit e95d7867ec
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ interface SerpReview {
export async function GET() {
const apiKey = "37eb7f83988cfd76ffb5c5af9adc25652efe5607e39997fc7d0e054d690ef25e";
const placeId = "ChIJJU4PkTL1K4gRPSWJdlAQ7ko";
const placeId = "ChIJjazCAVJhK4gRUj9RstvmUM0";
let allReviews: SerpReview[] = [];
let nextPageToken: string | null = null;

View File

@ -238,12 +238,12 @@ export default function Testimonials() {
<div className={styles.buttonContainer}>
<a
href="https://www.google.com/search?sca_esv=fb3147f266a54277&sxsrf=AE3TifPK9lVB_UK5Mt9ko4Ht65w63RgqUQ:1764431326889&si=AMgyJEtREmoPL4P1I5IDCfuA8gybfVI2d5Uj7QMwYCZHKDZ-E3A-qenJpQm2J1V3Wa6_UKYzIQhT0idJrAopWIgZ0RiDDHrNP0RtPpfTzWgU2637exPDNkEZu0WuVN4TEdgoYqqtQwcWsOUIFi4JvvmrZPyybRzrcg%3D%3D&q=Antalya+Turkish+Restaurant+Reviews&sa=X&ved=2ahUKEwic4uDz2peRAxUbTmwGHWwWBRoQ0bkNegQIJRAE&biw=1528&bih=786&dpr=1.25&zx=1764431335803&no_sw_cr=1#lrd=0x882bf532910f4e25:0x4aee10507689253d,3,,,,"
href="https://www.google.com/maps/place/Antalya+Turkish+Restaurant+Burlington/@43.3768396,-79.7610065,17z/data=!4m8!3m7!1s0x882b610051283d59:0x87d60f4e428c03c5!8m2!3d43.3768396!4d-79.7610065!9m1!1b1!16s%2Fg%2F11y1838z2k"
target="_blank"
rel="noopener noreferrer"
className={styles.button}
>
Review Us on Google
Write a Review on Google
</a>
</div>
</section>