AIzaSyBp3DsiMi0av17fC3Te0rGnuLBjIh02l6w
New:
AIzaSyBTKGzkhLGPI4duyfWlg0aLhJ6Vzh2QwLE
place_id 알아내기
place_id를 통해
1️⃣ google map 렌더링
2️⃣ Place Detail에 요청보내서 리뷰데이터와 photo_reference 가져오기
photo_reference를 통해 Place Photo에 요청보내서 사진 가져오기
상단에 사진 3개를 넣는다면 Place Photo에 요청을 3번 보내야함
사진 가져와봤는데 몇몇 사진은 음식사진x
사진은 차라리 크롤링해서 디비에 두는게..?
https://developers.google.com/maps/documentation/places/web-service/photos
이 두개 참고
https://developers.google.com/maps/documentation/places/web-service/details
쿼리 부분 중 placeid에 해당 하는 placeid 넣고 key에 위에 있는 api키 넣으면 json 반환하는데 사진이라던가 리뷰도 반환함
https://developers.google.com/maps/documentation/places/web-service/place-id
여기 참고 place id
https://developers.google.com/maps/documentation/places/web-service/search-text
이걸로 음식점db에서 name+address 로 검색해서 place id 알아야 하나
→ address 만으로도 검색이 되긴 하는데 6500개 다 address 만으로 검색이 될지는 확신못하겠어요..
→ https://jingwen-z.github.io/how-to-get-places-reviews-on-google-maps-by-place-api/ : 여기 Step 1 bis: If you have an address, 부분 보면 address로 검색이 가능하다고는 합니다.
어려워용..