我正在使用此API搜索城市jack
中的los gotas
相关数据:
但它也给了我那些与那个城市无关的数据。
这里是输出:
{
"vName": "Jack Barry and Associates",
"vFourSquareID": "4f32c93919836c91c7fa7874",
"enhance": "0",
"vLogo": "",
"bigthumb_logo": "",
"compressthumb_logo": "",
"vBanner": "",
"bigthumb_banner": "",
"compressthumb_banner": "",
"iBarID": "-1",
"tAddress": "Milpitas",
"dLat": "37.425211",
"dLong": "-121.866708",
"distance": "0",
"formatted_address": "2143 Incline Ct,Milpitas, CA 95035"
},
{
"vName": "Jack O'Neill Lounge",
"vFourSquareID": "52df337a498e8f50b076f933",
"enhance": "0",
"vLogo": "",
"bigthumb_logo": "",
"compressthumb_logo": "",
"vBanner": "",
"bigthumb_banner": "",
"compressthumb_banner": "",
"iBarID": "-1",
"tAddress": "Santa Cruz",
"dLat": "36.962198818189",
"dLong": "-122.02405086867",
"distance": "0",
"formatted_address": "Santa Cruz, CA 95060"
},
{
"vName": "Jack Rose Libation House",
"vFourSquareID": "52a5a18511d28dac8af3d02d",
"enhance": "0",
"vLogo": "",
"bigthumb_logo": "",
"compressthumb_logo": "",
"vBanner": "",
"bigthumb_banner": "",
"compressthumb_banner": "",
"iBarID": "-1",
"tAddress": "Los Gatos",
"dLat": "37.240493163257",
"dLong": "-122.00109243393",
"distance": "0",
"formatted_address": "18840 Saratoga Los Gatos Rd (Austin Way),Los Gatos, CA 95030"
}
在输出中,前2个结果不是来自los gatos
城市。但它仍在显示。任何人都可以说为什么?
答案 0 :(得分:2)
您正在搜索附近的Los Gatos,但未指定范围。您应该使用radius
参数指定范围。请尝试以下网址