Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google maps Google Places API中缺少Google地图中的位置_Google Maps_Google Places Api_Google Places - Fatal编程技术网

Google maps Google Places API中缺少Google地图中的位置

Google maps Google Places API中缺少Google地图中的位置,google-maps,google-places-api,google-places,Google Maps,Google Places Api,Google Places,我一直试图在GooglePlacesAPI中找到特定的位置,但没有成功。当我在谷歌地图中输入“La Cucina Trattoria”时,我得到三个结果。但是,当我运行此查询时: 我只得到两个结果。因此,我测试了更多具有类似效果的查询: 输入=la%20cucina%20trattoria%20gmbh-无结果 -结果中缺少位置(我已将其确切位置作为参数) location=48.139649,11.602685&rankby=distance&keyword=Neherstraße%209-

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

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

输入=la%20cucina%20trattoria%20gmbh-无结果

-结果中缺少位置(我已将其确切位置作为参数)

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


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

我遇到过类似的问题,但通常更改查询会得到更好的结果。除此之外,您还可以手动执行以下操作:


这将允许您的应用程序立即查看该位置,并可能将其添加到谷歌地图中。

我无法在位置中找到La Cucina Trattoria,我尝试了许多不同的策略,包括文本搜索()。我会在这里向地方API问题跟踪者报告:

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


这并没有回答Places API是否使用与maps.google.com不同的数据库的问题。根据他们的网页,这是:“由google maps使用的同一个数据库支持…”嗯,这是一个答案,尽管这似乎不令人满意。恐怕手动添加一个位置无法满足应用程序的需求。它应该拥有谷歌地图拥有的每一个地方,添加每一个缺失的地方不是一个选项。如果他们有相同的后端,我想知道是否有可能有些地方对于Google places API是不可见的。我想知道是否有些地方实际上不是“地方”,而是Google地图系统中的另一个实体,他们可以通过元数据和内部“用户的实际用途”返回Google地图Places 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"
}