Package com.baidu.navisdk.adapter.struct
Class BNLocationData.Builder
- java.lang.Object
-
- com.baidu.navisdk.adapter.struct.BNLocationData.Builder
-
- Enclosing class:
- BNLocationData
public static class BNLocationData.Builder extends java.lang.Object
定位数据建造器
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BNLocationData.Builder
accuracy(float accuracy)
设置定位数据的精度信息,单位:米BNLocationData.Builder
altitude(int altitude)
设置定位数据的海拔高度BNLocationData.Builder
bias(float bias)
BNLocationData
build()
构建生成定位数据对象BNLocationData.Builder
direction(float direction)
设置定位数据的方向信息BNLocationData.Builder
latitude(double lat)
设置定位数据的纬度BNLocationData.Builder
locType(int type)
定位类型BNLocationData.Builder
longitude(double lng)
设置定位数据的经度BNLocationData.Builder
satellitesNum(int num)
设置定位数据的卫星数目BNLocationData.Builder
speed(float speed)
设置定位数据的速度BNLocationData.Builder
time(long time)
设置定位数据的时间
-
-
-
Method Detail
-
latitude
public BNLocationData.Builder latitude(double lat)
设置定位数据的纬度- Parameters:
lat
- 纬度- Returns:
- 该构造器对象
-
longitude
public BNLocationData.Builder longitude(double lng)
设置定位数据的经度- Parameters:
lng
- 经度- Returns:
- 该构造器对象
-
speed
public BNLocationData.Builder speed(float speed)
设置定位数据的速度- Parameters:
speed
- 速度 单位:米/秒- Returns:
- 该构造器对象
-
direction
public BNLocationData.Builder direction(float direction)
设置定位数据的方向信息- Parameters:
direction
- 方向- Returns:
- 该构造器对象
-
accuracy
public BNLocationData.Builder accuracy(float accuracy)
设置定位数据的精度信息,单位:米- Parameters:
accuracy
- 精度信息,单位:米- Returns:
- 该构造器对象
-
bias
public BNLocationData.Builder bias(float bias)
-
satellitesNum
public BNLocationData.Builder satellitesNum(int num)
设置定位数据的卫星数目- Parameters:
num
- 卫星数目- Returns:
- 该构造器对象
-
altitude
public BNLocationData.Builder altitude(int altitude)
设置定位数据的海拔高度- Parameters:
altitude
- 海拔高度- Returns:
- 该构造器对象
-
time
public BNLocationData.Builder time(long time)
设置定位数据的时间- Parameters:
time
- 时间- Returns:
- 该构造器对象
-
locType
public BNLocationData.Builder locType(int type)
定位类型- Parameters:
type
- 定位类型- Returns:
- 构造器对象
-
build
public BNLocationData build()
构建生成定位数据对象- Returns:
- 生成定位数据对象
-
-