TransportEvent

Represents a duration of the time when the user was in transport.

TransportEvent API

This class extends Event. See Event for additional properties and methods.

getDistanceInMeters()

@Nullable Integer getDistanceInMeters()

Returns the distance travelled during the transport in meters. If distance cannot be computed then returns null.

getTransportMode()

TransportMode getTransportMode()

Returns the mode of transportation.

getWaypoints()

List<Waypoint> getWaypoints()

Returns the waypoints collected during the transport, as Waypoint.

Last updated