public static class Geo2AddressParam.PoiOptions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADDRESS_FORMAT_DEFAULT |
static java.lang.String |
ADDRESS_FORMAT_SHORT |
static int |
POLICY_DEFAULT
默认场景策略, 以地标+主要的路+近距离POI为主,着力描述当前位置;
|
static int |
POLICY_O2O
到家场景策略,筛选合适收货的POI,并会细化收货地址,精确到楼栋
|
static int |
POLICY_SHARE
位置共享场景策略,用户经常用于发送位置、位置分享等场景的热门地点优先排序
|
static int |
POLICY_SOCIAL
社交签到场景策略,针对用户签到的热门地点进行优先排序
|
static int |
POLICY_TRIP
出行场景策略,过滤掉车辆不易到达的POI(如一些景区内POI),增加道路出入口、交叉口、大区域出入口类POI,排序会根据真实API大用户的用户点击自动优化。
|
Constructor and Description |
---|
PoiOptions() |
Modifier and Type | Method and Description |
---|---|
Geo2AddressParam.PoiOptions |
setAddressFormat(java.lang.String addressFormat)
POI列表地址格式
ADDRESS_FORMAT_SHORT |
Geo2AddressParam.PoiOptions |
setCategorys(java.lang.String... category)
指定分类
|
Geo2AddressParam.PoiOptions |
setPageIndex(int pageIndex)
页码,取值范围 1-20
|
Geo2AddressParam.PoiOptions |
setPageSize(int pageSize)
每页条数,取值范围 1-20
|
Geo2AddressParam.PoiOptions |
setPolicy(int policy)
场景策略
|
Geo2AddressParam.PoiOptions |
setRadius(int radius)
设置半径,取值范围 1-5000(米)
|
java.lang.String |
toString() |
public static final java.lang.String ADDRESS_FORMAT_DEFAULT
public static final java.lang.String ADDRESS_FORMAT_SHORT
public static final int POLICY_DEFAULT
public static final int POLICY_O2O
public static final int POLICY_TRIP
public static final int POLICY_SOCIAL
public static final int POLICY_SHARE
public Geo2AddressParam.PoiOptions setAddressFormat(java.lang.String addressFormat)
ADDRESS_FORMAT_SHORT
addressFormat
- public Geo2AddressParam.PoiOptions setRadius(int radius)
radius
- 半径,取值范围 1-5000(米)public Geo2AddressParam.PoiOptions setPageSize(int pageSize)
pageSize
- public Geo2AddressParam.PoiOptions setPageIndex(int pageIndex)
pageIndex
- public Geo2AddressParam.PoiOptions setPolicy(int policy)
policy
- public Geo2AddressParam.PoiOptions setCategorys(java.lang.String... category)
category
- public java.lang.String toString()
toString
in class java.lang.Object