2

使用谷歌地图在某些地理坐标附近搜索名为“Netto”的商店时

http://maps.google.de/maps?q=netto+near+49.046054,8.380787+&hl=de&ll=49.047475,8.379607&spn=0.01194,0.027874&sll=49.046054,8.380787&sspn=0.011941,0.tto=m&78&78 16

我正确地看到了两个结果。

但是,使用 Google Places API 进行相同的搜索

https://maps.googleapis.com/maps/api/place/search/json?location=49.046054,8.380787&radius=1000&sensor=false&keyword=netto&key=[keyremoved]

只产生一个结果:

{
   "html_attributions" : [],
   "results" : [
      {
         "geometry" : {
            "location" : {
               "lat" : 49.0459950,
               "lng" : 8.3811020
            }
         },
         "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
         "id" : "51b5bafdd6224ba1721c9708d59aa0ed7f8377e2",
         "name" : "Netto Marken-Discount AG & Co. KG",
         "reference" : "CoQBdwAAALWmu5j28xIY3s9oBL9Vs8vBCmcghvKWlV9HbHysvQgZ4tMmQ_awemt0k9CA3U9KTRa-CMWq1owOZL1cSLOjKIDb8LdHce3yhIJpJ2fsUnsnFFF1b02gnJK5m5e-4E85_5gTrPZhZIDYrrFenrGyBpWLHkYSFfn0Ir3_zOJlKVWeEhC3RsEsXWqDJ1yizMOR0gvVGhREdmbn0G6GYcAsm4jGJxgJeNbLiw",
         "types" : [ "establishment" ],
         "vicinity" : "Dürerstr. 3b, Karlsruhe"
      }
   ],
   "status" : "OK"
}

查询中的半径为1000m,绝对足够(谷歌地图报告的距离<400m)。更改名称的关键字参数也无济于事。

https://maps.googleapis.com/maps/api/place/search/json?location=49.046054,8.380787&radius=1000&sensor=false&name=netto&key=[keyremoved]

我该怎么做才能得到这两个结果?

4

0 回答 0