Google Maps API - 无法找到我公司的Google地方ID

时间:2016-06-08 21:29:50

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

我一直在这个论坛上寻找解决方案,但我找不到:

我无法找到我的商家地址ID,这是我在google评论片段中所需要的。

我在placeID查找器中输入我的商家名称,但没有显示任何内容。我只能查看我的业务所在的建筑物的地址,而不是我的实际业务。

我的商家页面: https://business.google.com/b/106802106987470032893/dashboard/l/06489107232401690502?pageId=106802106987470032893

我的谷歌地图链接:https://www.google.com/maps/place/CherryLaser+laser+cutting+and+engraving+services/@34.0454354,-118.2509478,17z/data=!4m12!1m6!3m5!1s0x80c2c63593d2cbab:0x9417c55fe89ca04b!2sCherryLaser+laser+cutting+and+engraving+services!8m2!3d34.0454354!4d-118.2487591!3m4!1s0x80c2c63593d2cbab:0x9417c55fe89ca04b!8m2!3d34.0454354!4d-118.2487591

我也试图抓住谷歌地图api支持或google上的任何人,没有运气。有谁知道我在哪里可以找到客户支持号码? 感谢

1 个答案:

答案 0 :(得分:0)

我执行了Places API文字搜索请求:

https://maps.googleapis.com/maps/api/place/textsearch/json?query=CherryLaser%20laser%20cutting%20and%20engraving%20services&key=YOUR_API_KEY

得到了这个结果:

{
    "html_attributions":[
     ],
    "results":[
        {
            "formatted_address":"533 S Los Angeles St, Los Angeles, CA 90013, United States",
            "geometry":{
                "location":{
                    "lat":34.0454354,
                    "lng":-118.2487591
                }
            },
      "icon":"https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
  "id":"ef1923650a198ab42c3335c4f49d2ed52c9680fd",
  "name":"CherryLaser laser cutting and engraving services",
  "opening_hours":{
    "open_now":true,
    "weekday_text":[

    ]
  },
  "photos":[
    {
      "height":450,
      "html_attributions":[
        "CherryLaser laser cutting and engraving services"
      ],
      "photo_reference":"CoQBcwAAAAUiQHaDoHqUqnWuOMdk9JywgVZJl7rb78dqIETdN0KktPnqkWv0XRsKl-UXqorIvWG3icTejJ_940XJSj0l3mrvhndafNrZCkbGvT4VMZGJ0pSdO00rTQCP07LdtYAuvDG19go2A6pYjTfka7dynxTAH1ehzEnz9Sdm8WDnJcjnEhA-qRmXzs9cnEHN3ZHzleR7GhRqQYi4c3z-BanOl369gjvCQp7hpw",
      "width":1024
    }
  ],
  "place_id":"ChIJq8vSkzXGwoARS6Cc6F_FF5Q",
  "reference":"CpQBhQAAAGwY3h9oSu4ec696UxnIJOcWqy16HXoukpXcjr0p70ifB8xDMWNHs6Bh1Frebr60YuxsjFvSqh_KIYTAGWfbpW1OZ-kVqG0VH8sfwd9Ga8ot9moKSm7z_1mWIqqkVq6ufs_BrfWGp-yDypp84xN07LdgxZ32p69bIQypgY2tXBtVohq8oxgp5IEtrS0Q23eX7RIQsSYPuSGdOqw6el5SJN6GihoU5-K2Ogh2ml2wEEPwnSCoW83hm_0",
  "types":[
    "point_of_interest","establishment"
  ]
}
],
"status":"OK"
}

因此,您的企业的地点ID是ChIJq8vSkzXGwoARS6Cc6F_FF5Q。

您可以使用Places API详情请求查看详细信息:

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