API DocsAPI Docs
get/api/map/pois/search
get/api/map/pois/search
搜索POI数据
Basic Information
Request Method:
get
Request URL:
https://www.lycoo.com/api/map/pois/search
Tags:
地图服务
Description
根据关键字和可选的城市参数搜索POI数据,固定返回25条结果。如果未提供城市参数,将尝试通过请求IP获取城市
Query Parameters
Query Parameters Explanation
Query parameters are added at the end of the URL, starting with a question mark, for example:
https://www.lycoo.com/api/map/pois/search?keywords=example&city=example
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
keywords | string | Required | example | 搜索关键字(固定返回25条结果) |
city | string | Optional | example | 城市名称,可选参数,如:上海市、北京市。如未提供,将尝试通过IP获取城市 |
Header Parameters
Header Parameters Explanation
Header parameters are used to pass additional information, such as authentication credentials, content type, etc.
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
Authorization | string | Required | Bearer sha_1234567890abcdef... | The authentication header is used to verify the identity of API requests, containing an access token Format: Bearer {token} |
Response Example
200搜索成功
{
"success": true,
"city_used": "string"
}
400请求参数错误
{
"success": false,
"message": "必须提供搜索关键字"
}
500服务器错误
{
"success": false,
"message": "搜索POI失败"
}