Google Maps API - 无法为我的商家找到Google地方ID

时间:2017-04-18 07:22:46

标签: web-services google-maps google-maps-api-3 google-places-api

我想获取我的商家的Google地方ID,以便为我的客户创建链接以留下评论。

当我在地方ID查找器中输入我的公司名称和地址时,它不会返回任何结果。 https://developers.google.com/places/place-id

'google my business'列表已在5或6天前验证过。

我搜索了这个论坛,但我没有编码,我是企业主,我没有运气尝试任何建议的解决方案。

我在谷歌地图上的业务: https://www.google.co.uk/maps/place/Lift+PT/@51.5172825,-0.0812451,15z/data=!4m5!3m4!1s0x0:0x825f785e3a8e3819!8m2!3d51.5172825!4d-0.0812451

感谢您提供给我的任何帮助。

1 个答案:

答案 0 :(得分:1)

来自https://maps.googleapis.com/maps/api/place/textsearch/json?query=Lift%20PT%20London&key=YOUR_KEY

   /* Edited for length */
   "results" : [
      {
         "formatted_address" : "Andaz Hotel Health Club, 40 Liverpool Street, London EC2M 7QN, United Kingdom",
         "formatted_phone_number" : "07763 713331",
         "name" : "Lift PT",
---->    "place_id" : "ChIJZ6YsibIcdkgRGTiOOl54X4I",
         "types" : [ "health", "point_of_interest", "establishment" ],
         "url" : "https://maps.google.com/?cid=9394359693822801945",
         "user_ratings_total" : 1,
         "vicinity" : "Andaz Hotel Health Club, 40 Liverpool Street, London",
         "website" : "https://liftpt.co.uk/"
      },