You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< ? php
namespace tencent\map ;
class Place extends Base
{
/**
* 地点搜索
* @param string $boundary 搜索地理范围
* @param string $keyword POI搜索关键字, 用于全文检索字段
* @param string $filter 筛选条件:最多支持五个分类
* @param int $page_size 每页条目数, 最大限制为20条
* @param int $page_index 第x页, 默认第1页
* @date 2021-02-04
*/
public function getBoundary ( $boundary , $keyword , $filter = '' , $other_param = '' )
{
$key = $this -> config [ 'key' ];
$filter_param = ! empty ( $filter ) ? '&filter=' . $filter : '' ; //拼接waypoints参数
$url = $url = $this -> url . " place/v1/search?keyword= $keyword &boundary= $boundary &key= $key $filter_param & $other_param " ;
$result = http_data_get ( $url );
return $result ;
}
}