我的商家地址未显示在Google商家信息中

时间:2017-07-06 11:00:00

标签: google-maps google-maps-api-3 google-places-api review

我知道这个问题已被提前询问,我想知道是否有人可以告诉我我的Google地方ID,因为我已经按照其他答案但没有运气,我想要它以便我可以发布评论链接。

这是我在地图上的业务 - https://www.google.co.uk/maps/place/Demeanour+Customs/@52.378986,0.932232,15z/data=!4m2!3m1!1s0x0:0xd69e990a1537e44d?sa=X&ved=0ahUKEwjssorKvvTUAhWsCsAKHXdKB9MQ_BIIYDAK

1 个答案:

答案 0 :(得分:1)

致电:

  

https://maps.googleapis.com/maps/api/place/textsearch/json?query=Demeanour%20Customs&key=YourKey

我们得到以下结果,您的地点ID会突出显示:

{
   "html_attributions" : [],
   "results" : [
      {
         "formatted_address" : "Common Road, Hopton IP22 2QU, United Kingdom",
         "geometry" : {
            "location" : {
               "lat" : 52.378986,
               "lng" : 0.9322319999999998
            },
            "viewport" : {
               "northeast" : {
                  "lat" : 52.38033498029149,
                  "lng" : 0.9335809802915019
               },
               "southwest" : {
                  "lat" : 52.37763701970849,
                  "lng" : 0.9308830197084978
               }
            }
         },
         "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
         "id" : "690b7ddc30ccef065dcc64e46ce0e2ad7936d977",
         "name" : "Demeanour Customs",
         "opening_hours" : {
            "open_now" : true,
            "weekday_text" : []
         },
         "photos" : [
            {
               "height" : 630,
               "html_attributions" : [
                  "\u003ca href=\"https://maps.google.com/maps/contrib/108914736063426931463/photos\"\u003eDemeanour Customs\u003c/a\u003e"
               ],
               "photo_reference" : "CmRaAAAAoYmW_yjX5k5Q8Ra8gJsBputCHubMK0lo6SF73fNr1-isx7pVBqy4To8dXpXr3ECirXel_pKjD44CrDWVb6vqw6xKLc7AV4tErTEwgL5UnjizAyTrcRTfObgTpOyuOHGaEhDPpsShhN6jGTvzZT08zVtNGhRFUxbPiXSNnpTCs1JrVZdSq7HCtg",
               "width" : 1702
            }
         ],
         "place_id" : "ChIJDVPTd0rI2UcRTeQ3FQqZntY",
         "reference" : "CmRSAAAAVXhOWK1IHyF8CKo_zjZtUVQXdFeNCCukCjiWE-X3JnEx0DdeJIDjXLpA4foqLDRZAVbPki72oM7tmhadvhAwlnBAGRljRdC8EVTbxjBxj8eDd-xZikpx7fNDaoCQFMIeEhAHIvtNywS7nsI3MZ5Vvi94GhTBFsCNb_a8g7TxDlbNvPBapJC4vQ",
         "types" : [ "point_of_interest", "establishment" ]
      }
   ],
   "status" : "OK"
}

<强>&#34; place_id&#34; :&#34; ChIJDVPTd0rI2UcRTeQ3FQqZntY&#34;,