public class TranslateParam extends java.lang.Object implements ParamObject
| 构造器和说明 |
|---|
TranslateParam() |
| 限定符和类型 | 方法和说明 |
|---|---|
TranslateParam |
addLocation(Location location)
添加一组坐标
|
RequestParams |
buildParameters()
构造参数
|
boolean |
checkParams()
检查参数输入是否正确
|
TranslateParam |
coord_type(CoordTypeEnum type)
输入的locations的坐标类型
可选值为[1,6]之间的整数,每个数字代表的类型说明
1 GPS坐标
2 sogou经纬度
3 baidu经纬度
4 mapbar经纬度
5 [默认]腾讯、google、高德坐标
6 sogou墨卡托
|
TranslateParam |
locations(Location... locations)
批量添加一组坐标
|
public TranslateParam addLocation(Location location)
public TranslateParam locations(Location... locations)
public TranslateParam coord_type(CoordTypeEnum type)
public boolean checkParams()
ParamObjectcheckParams 在接口中 ParamObjectpublic RequestParams buildParameters()
ParamObjectbuildParameters 在接口中 ParamObject