Google Places API中缺少结果

时间:2012-04-10 06:44:50

标签: web-services google-maps

使用Google地图在某些地理坐标附近搜索名为“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.027874&hq=netto&t=m&z=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"
}

查询中的半径为1000米,这绝对足够(Google地图报告的距离<400米)。更改name的keyword-parameter也无济于事。

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

我可以做些什么来获得两个结果?

0 个答案:

没有答案