TransportEvent
Represents a duration of the time when the user was in transport.
Constructors
Link copied to clipboard
constructor(@NonNull id: String, @NonNull startTime: DateTime, @Nullable endTime: DateTime, @NonNull transportMode: TransportMode, @NonNull waypoints: List<Waypoint>, @Nullable distanceTravelled: Integer, @NonNull transportTags: Map<String, String>)
constructor(@NonNull id: String, @NonNull startTime: DateTime, @Nullable endTime: DateTime, @NonNull lastUpdateTime: DateTime, @NonNull transportMode: TransportMode, @NonNull waypoints: List<Waypoint>, @Nullable distanceTravelled: Integer, @NonNull transportTags: Map<String, String>)
constructor(@NonNull id: String, @NonNull startTime: DateTime, @Nullable endTime: DateTime, @NonNull lastUpdateTime: DateTime, @NonNull transportMode: TransportMode, @NonNull waypoints: List<Waypoint>, @Nullable distanceTravelled: Integer, @NonNull transportTags: Map<String, String>, @NonNull occupantRole: OccupantRole)
constructor(@NonNull id: String, @NonNull startTime: DateTime, @Nullable endTime: DateTime, @NonNull lastUpdateTime: DateTime, @NonNull transportMode: TransportMode, @NonNull waypoints: List<Waypoint>, @Nullable distanceTravelled: Integer, @NonNull transportTags: Map<String, String>, @NonNull occupantRole: OccupantRole, isProvisional: Boolean)
Functions
Link copied to clipboard
Link copied to clipboard
Returns the distance travelled during the transport, in meters.
Link copied to clipboard
Returns the event type.
Link copied to clipboard
Returns the detected user occupant role.
Link copied to clipboard
Returns the mode of transportation.
Link copied to clipboard
Returns the waypoints collected during the transport.
Link copied to clipboard