이 친구의 place_id를 알아봅시다

{
    "_id": {
        "$oid": "626370999dcb2f0f3041e8fc"
    },
    "name": "Pic",
    "address": "285 avenue Victor-Hugo, Valence, 26000, France",
    "location": "Valence",
    "minPrice": 350,
    "maxPrice": 350,
    "currency": "EUR",
    "cuisine": ["Creative"],
    "longitude": 4.8854965,
    "latitude": 44.9177848,
    "phoneNumber": "+33475441532",
    "url": "<https://guide.michelin.com/en/auvergne-rhone-alpes/valence/restaurant/pic>",
    "websiteUrl": "<https://www.anne-sophie-pic.com/>",
    "award": "3 MICHELIN Stars",
    "country": "France"
}

https://developers.google.com/maps/documentation/places/web-service/search-text#TextSearchRequests

이걸 써서 알아올거구요

query 부분에 이름과 주소를 넣어주면 결과가 나옵니다

그런데 이친구 찾아보니까 레스토랑이 아니라 해당 위치에 있는 호텔이더라구요

https://maps.googleapis.com/maps/api/place/textsearch/json?query=Pic 285 avenue Victor-Hugo, Valence, 26000, France&key=AIzaSyBp3DsiMi0av17fC3Te0rGnuLBjIh02l6w

그래서 type에 restaurant 추가해서 검색하니까 래스토랑으로 검색이 1개 됩니다.

https://maps.googleapis.com/maps/api/place/textsearch/json?query=Pic 285 avenue Victor-Hugo, Valence, 26000, France&key=AIzaSyBp3DsiMi0av17fC3Te0rGnuLBjIh02l6w&type=restaurant

해당 place_id의 place detail입니다.

https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJPW8V6jxY9UcRGQKqpWHzzdA&key=AIzaSyBp3DsiMi0av17fC3Te0rGnuLBjIh02l6w