net*_*ets 7 google-maps google-places-api google-places
我一直试图在Google Places API中找到具体位置但没有成功.当我在Google地图中输入"La Cucina Trattoria"时,我得到三个结果.但是,当我运行此查询时:
我只得到两个结果.所以我测试了更多具有类似效果的查询:
input = 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 - 在结果中丢失(但是,它返回的结果来自同一条街道)
我的客户命名了两个他知道的随机地点,但在Google Places 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"
}
Run Code Online (Sandbox Code Playgroud)
这应该允许您的应用程序立即看到该地点,并可能将其添加到 Google 地图中。
| 归档时间: |
|
| 查看次数: |
1875 次 |
| 最近记录: |