Android 谷歌自定义搜索结果只有来自谷歌地图的结果
我最近实现了谷歌自定义搜索。我得到一个结果,但它的每一个链接,无论是网站,图像或缩略图,它是从地图 示例结果-Android 谷歌自定义搜索结果只有来自谷歌地图的结果,android,google-custom-search,Android,Google Custom Search,我最近实现了谷歌自定义搜索。我得到一个结果,但它的每一个链接,无论是网站,图像或缩略图,它是从地图 示例结果- { "kind": "customsearch#result", "title": "Saga Tree", "htmlTitle": "Saga \u003cb\u003eTree\u003c/b\u003e", "link": "https://***www.google.com/mymaps***/viewer?mid=1yF1gMCZhBaeEo
{
"kind": "customsearch#result",
"title": "Saga Tree",
"htmlTitle": "Saga \u003cb\u003eTree\u003c/b\u003e",
"link": "https://***www.google.com/mymaps***/viewer?mid=1yF1gMCZhBaeEouT9GB-7bQqXmuw&hl=en",
"formattedUrl": "***https://www.google.com/mymaps***/viewer?mid...7bQqXmuw&hl...",
"pagemap": {
"cse_thumbnail": [
{
"width": "221",
"height": "228",
"src": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR2SZoZ2AF7PUVw5wGucLb5Hd4k1Bwkt3x6__ed8E_01Mlq5Fwd7nKpKI2b"
}
],
"website": [
{
"name": "Saga Tree",
"description": "Saga Tree",
"url": "***https://www.google.com/maps/d/viewer***?mid=1yF1gMCZhBaeEouT9GB-7bQqXmuw&hl=en",
"image": "***https://www.google.com/maps***/d/thumbnail?mid=1yF1gMCZhBaeEouT9GB-7bQqXmuw&hl=en"
}
],
"metatags": [
{
"viewport": "initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0,width=device-width",
"og:type": "website",
"og:title": "Saga Tree",
"og:description": "Saga Tree",
"og:url": "***https://www.google.com/maps***/d/viewer?mid=1yF1gMCZhBaeEouT9GB-7bQqXmuw&hl=en",
"og:image": "***https://www.google.com/maps***/d/thumbnail?mid=1yF1gMCZhBaeEouT9GB-7bQqXmuw&hl=en",
"twitter:card": "summary_large_image",
"twitter:title": "Saga Tree",
"twitter:description": "Saga Tree",
"twitter:image:src": "https://www.google.com/maps/d/thumbnail?mid=1yF1gMCZhBaeEouT9GB-7bQqXmuw&hl=en"
}
],
"cse_image": [
{
"src": "https://www.google.com/maps/d/thumbnail?mid=1yF1gMCZhBaeEouT9GB-7bQqXmuw&hl=en"
}
]
}
}
这是每一个结果。我想要的结果就像在浏览器中搜索一样。当自定义搜索API仅对默认包含的站点(www.google.com)执行搜索时,通常会出现这种情况。这是默认设置。要更改它,请转到自定义搜索引擎下的基础->要搜索的站点,并选择“搜索整个网站,但强调包含的站点”而不是默认的“仅搜索包含的站点” 还要确保在“基本”下启用了图像搜索