Google Places API 中缺少 Google 地图中的地点



我一直试图在Google Places API中找到特定的位置,但没有成功。当我在谷歌地图中输入"La Cucina Trattoria"时,我得到了三个结果。但是,当我运行此查询时:

https://maps.googleapis.com/maps/api/place/autocomplete/json?key=API_KEY&input=la%20cucina%20trattoria

我只得到两个结果。因此,我测试了更多具有类似效果的查询:

输入=LA%20CUCINA%20Trattoria%20Gmbh - 无结果

https://maps.googleapis.com/maps/api/place/search/json?key=API_KEY&location=48.139649,11.602685&rankby=distance&keyword=cucina - 结果中缺少的位置(我已将其确切位置作为参数)

location=48.139649,11.602685&rankby=distance&keyword=Neherstraße%209 - 结果中缺少位置(但是,它从同一条街道返回结果)

我的客户随机命名了两个他知道的地方,但没有一个在谷歌地方API中找到。Google Places API和Google Maps是否有可能在两个不同的数据库上运行?或者这些地方可以隐藏在公共 API 中吗?

我遇到了类似的问题,但通常更改查询会产生更好的结果。除了报告之外,您还可以手动添加地点:

POST https://maps.googleapis.com/maps/api/place/add/json?key=AddYourOwnKeyHere HTTP/1.1
Host: maps.googleapis.com
{
  "location": {
    "lat": -33.8669710,
    "lng": 151.1958750
  },
  "accuracy": 50,
  "name": "Google Shoes!",
  "phone_number": "(02) 9374 4000",
  "address": "48 Pirrama Road, Pyrmont, NSW 2009, Australia",
  "types": ["shoe_store"],
  "website": "http://www.google.com.au/",
  "language": "en-AU"
}

这应该允许您的应用程序立即看到该地点,并可能将其添加到 Google 地图中。

我无法在Places找到La Cucina Trattoria,我尝试了许多不同的策略,包括文本搜索(慕尼黑Neherstraße的 https://maps.googleapis.com/maps/api/place/textsearch/xml?query=italian 餐厅&key=MYKEY)。 我会在这里向 Place API 问题跟踪器报告:https://code.google.com/p/gmaps-api-issues/issues/list?can=2&q=apitype:PlacesAPI%20type:Defect&sort=-stars&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Internal%20Stars

检查现有错误

的广泛列表,看看是否可以将您的名称添加到现有错误中并加快其解决速度。 以下是一些类似的已确认错误:

某些查询在

应该有很多查询时不返回任何结果

错误:德国的搜索结果稀疏

错误

:放置详细信息请求返回错误的结果

最新更新