Foursquare API - 按地址搜索

Foursquare API - Search By Address

我在我的应用程序中使用 venues/search API,我得到了一些奇怪的结果:https://developer.foursquare.com/docs/venues/search

如果我发送查询“1 Irving”,就像用户正在搜索地址一样,Foursquare 返回的结果列表包含不相关的地点。通过查看文档,我猜想这是因为 API 的 "query" 参数仅搜索场地名称,而不是地址。

如果是这样,有人知道是否有任何方法可以让 API 也搜索地址信息吗?似乎 Foursquare 和 Swarm 应用程序在搜索时都会这样做,因为当我尝试在那里时,“1 Irving”的结果更相关。

编辑:包括来自 Foursquare 应用程序的屏幕截图

快速浏览一下文档,您似乎可以将位置作为 near 对象而不是 query 对象传递。文档具体说 "A search term to be applied against venue names."

venues/search 文档中提到,如果您设置 intent=match,您可以包含一个 address 参数。

Finds venues that are are nearly-exact matches for the given parameters. This intent is highly sensitive to the provided location. We recommend using this intent only when trying to correlate an existing place database with Foursquare's. The results will be sorted best match first, taking distance and spelling mistakes/variations into account.

query and ll are the only required parameters for this intent, but matching also supports phone, address, city, state, zip, and twitter. There's no specified format for these parameters—we do our best to normalize them and drop them from the search if unsuccessful.

但是,您仍然需要提供一个 query 参数,即场地名称。我不相信存在一个端点来查找一个只有地址的场所。