Package es.situm.sdk.model.location
Class Location.Builder
- java.lang.Object
-
- es.situm.sdk.model.location.Location.Builder
-
- Enclosing class:
- Location
public static final class Location.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Location.Builder
bearing(Angle bearing)
Used in outdoor locations.Location
build()
Location.Builder
cartesianBearing(Angle cartesianBearing, Angle bearing)
Used in indoor locations.Location.Builder
cartesianBearing(Angle cartesianBearing, Angle bearing, Location.Quality cartesianBearingQuality)
Location.Builder
customFields(java.util.Map<java.lang.String,java.lang.String> customFields)
Location.Builder
deviceId(java.lang.String deviceId)
Identifier of the device that has generated the location (Retrieve the identifier of the device by using SitumSDK#getDeviceID()Location.Builder
hasRotationMatrix(java.lang.Boolean hasRotationMatrix)
Location.Builder
pitch(Angle pitch)
Location.Builder
position(Point point)
Location.Builder
quality(Location.Quality quality)
Location.Builder
roll(Angle roll)
Location.Builder
rotationMatrix(float[] rotationMatrix)
Location.Builder
timestamp(long timestamp)
-
-
-
Method Detail
-
timestamp
@NonNull public Location.Builder timestamp(long timestamp)
-
quality
@NonNull public Location.Builder quality(Location.Quality quality)
-
cartesianBearing
@NonNull public Location.Builder cartesianBearing(Angle cartesianBearing, Angle bearing)
Used in indoor locations. The bearing quality assumed will beLocation.Quality.HIGH
-
cartesianBearing
@NonNull public Location.Builder cartesianBearing(Angle cartesianBearing, Angle bearing, Location.Quality cartesianBearingQuality)
-
bearing
@NonNull public Location.Builder bearing(Angle bearing)
Used in outdoor locations. The bearing quality assumed will beLocation.Quality.HIGH
-
pitch
@NonNull public Location.Builder pitch(Angle pitch)
-
roll
@NonNull public Location.Builder roll(Angle roll)
-
rotationMatrix
@NonNull public Location.Builder rotationMatrix(float[] rotationMatrix)
-
hasRotationMatrix
@NonNull public Location.Builder hasRotationMatrix(java.lang.Boolean hasRotationMatrix)
-
deviceId
@NonNull public Location.Builder deviceId(java.lang.String deviceId)
Identifier of the device that has generated the location (Retrieve the identifier of the device by using SitumSDK#getDeviceID()- Parameters:
deviceId
- unique identifier of the devide- Returns:
- Location Builder
-
position
@NonNull public Location.Builder position(Point point)
-
customFields
@NonNull public Location.Builder customFields(java.util.Map<java.lang.String,java.lang.String> customFields)
-
build
@NonNull public Location build()
-
-