Class Info |
|---|
public class QuerySuggestionRequest 查询建议的请求对象。 |
Qualifier and Type |
Method Name and Description |
|---|---|
| 获取到搜索结果偏向的范围。 |
|
String |
获取到地点的国家/地区码。 |
String |
获取用于查询地点搜索建议结果的语种。 |
| 获取到搜索结果偏向的经纬度。 |
|
List<LocationType> |
获取返回地点的POI类型。 |
String |
获取政治观点。 注意:
该接口已废弃。 |
String |
getQuery() 获取到搜索关键字。 |
Integer |
获取到搜索半径。 |
boolean |
判断是否查询子节点。 |
Boolean |
获取到是否严格限制在Bounds内搜索。 |
List<String> |
获取当前设置的多个国家码。 |
void |
setChildren(boolean children) 设置是否返回子节点。 |
void |
setBounds(CoordinateBounds bounds) 设置搜索结果偏向的范围。 |
void |
setCountryCode(String countryCode) 设置国家/地区码。 |
void |
setLanguage(String language) 设置搜索结果的语种。 |
void |
setLocation(Coordinate location) 设置搜索结果偏向的经纬度。 |
void |
setPoiTypes(List<LocationType> poiTypes) 设置返回地点的POI类型。 |
void |
setPoliticalView(String politicalView) 设置政治观点。 注意:
该接口已废弃。 |
void |
setQuery(String query) 设置搜索关键字。 |
void |
setRadius(Integer radius) 设置搜索半径。 |
void |
setStrictBounds(Boolean strictBounds) 设置是否严格限制在Bounds内搜索。 |
void |
setCountries(List<String> countries) 设置多个国家码。 |
Method |
|---|
public CoordinateBounds getBounds() 您调用此API可以获取到搜索结果偏向的范围。 |
Returns
Type |
Description |
|---|---|
搜索结果偏向的范围。 |
Method |
|---|
public String getCountryCode() 您调用此API可以获取到地点的国家/地区码。 |
Returns
Type |
Description |
|---|---|
String |
国家/地区码,在指定的国家内搜索,采用ISO 3166-1 alpha-2。 |
Method |
|---|
public String getLanguage() 您调用此API可以获取用于查询地点搜索建议结果的语种。 |
Returns
Type |
Description |
|---|---|
String |
用于查询地点搜索建议结果的语种。 |
Method |
|---|
public Coordinate getLocation() 您调用此API可以获取到搜索结果偏向的经纬度。 |
Returns
Type |
Description |
|---|---|
搜索结果偏向的经纬度。 |
Method |
|---|
public List<LocationType> getPoiTypes() 您调用此API可以获取返回地点的POI类型。 |
Returns
Type |
Description |
|---|---|
List<LocationType> |
地点的POI类型。 |
该接口已废弃。
Method |
|---|
public String getPoliticalView() 您调用此API可以获取政治观点。 |
Returns
Type |
Description |
|---|---|
String |
政治观点。 |
Method |
|---|
public String getQuery() 您调用此API可以获取到搜索关键字。 |
Returns
Type |
Description |
|---|---|
String |
搜索关键字。 |
Method |
|---|
public Integer getRadius() 您调用此API可以获取到搜索半径。 |
Returns
Type |
Description |
|---|---|
Integer |
搜索半径,单位:米。 |
Method |
|---|
public boolean isChildren() 您调用此API判断是否查询子节点。 |
Returns
Type |
Description |
|---|---|
boolean |
默认值为false。 |
Method |
|---|
public Boolean getStrictBounds() 您调用此API可以获取到是否严格限制在Bounds内搜索。 |
Returns
Type |
Description |
|---|---|
Boolean |
是否严格限制在Bounds内搜索。 |
Method |
|---|
public List<String> getCountries() 您调用此API可以获取当前设置的多个国家码。 |
Returns
Type |
Description |
|---|---|
List<String> |
国家码列表。 |
Method |
|---|
public void setChildren(boolean children) 您调用此API可以设置是否返回子节点。 |
Parameters
Name |
Description |
|---|---|
children |
是否返回子节点。
默认值为false。 |
Method |
|---|
public void setBounds(CoordinateBounds bounds) 您调用此API可以设置搜索结果偏向的范围。 |
Parameters
Name |
Description |
|---|---|
bounds |
搜索结果偏向的范围。 说明:
如果同时设置了bounds和location,bounds优先。 |
Method |
|---|
public void setCountryCode(String countryCode) 您调用此API可以设置国家/地区码。 |
Parameters
Name |
Description |
|---|---|
countryCode |
国家/地区码,在指定的国家内搜索,采用ISO 3166-1 alpha-2。 |
Method |
|---|
public void setLanguage(String language) 您调用此API可以设置搜索结果的语种。 |
Parameters
Name |
Description |
|---|---|
language |
搜索结果返回的语种,取值范围参见支持的语言的语种代码。如果不传,返回地点的当地语言。 |
Method |
|---|
public void setLocation(Coordinate location) 您调用此API可以设置搜索结果偏向的经纬度。 |
Parameters
Name |
Description |
|---|---|
location |
搜索结果偏向的经纬度。 说明:
如果location、bounds都传的话,那么bounds优先。 |
Method |
|---|
public void setPoiTypes(List<LocationType> poiTypes) 您调用此API可以设置返回地点的POI类型。 |
Parameters
Name |
Description |
|---|---|
poiTypes |
POI类型。取值范围是LocationType的子集,包括:
|
该接口已废弃。
Method |
|---|
public void setPoliticalView(String politicalView) 您调用此API可以设置政治观点。 |
Parameters
Name |
Description |
|---|---|
politicalView |
政治观点,采用ISO 3166-1-alpha-2规范的2位国家/地区码。 |
Method |
|---|
public void setQuery(String query) 您调用此API可以设置搜索关键字。 |
Parameters
Name |
Description |
|---|---|
query |
搜索关键字,query为必选参数。 |
Method |
|---|
public void setRadius(Integer radius) 您调用此API可以设置搜索半径。 |
Parameters
Name |
Description |
|---|---|
radius |
搜索半径,单位:米。取值范围:[1, 50000],默认50000米。 |