-
public final class RadarTripRepresents a trip.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumRadarTrip.RadarTripStatus
-
Field Summary
Fields Modifier and Type Field Description private final String_idprivate final StringexternalIdprivate final JSONObjectmetadataprivate final StringdestinationGeofenceTagprivate final StringdestinationGeofenceExternalIdprivate final RadarCoordinatedestinationLocationprivate final Radar.RadarRouteModemodeprivate final DoubleetaDistanceprivate final DoubleetaDurationprivate final RadarTrip.RadarTripStatusstatusprivate final Array<RadarTripOrder>orders
-
Constructor Summary
Constructors Constructor Description RadarTrip(String _id, String externalId, JSONObject metadata, String destinationGeofenceTag, String destinationGeofenceExternalId, RadarCoordinate destinationLocation, Radar.RadarRouteMode mode, Double etaDistance, Double etaDuration, RadarTrip.RadarTripStatus status, Array<RadarTripOrder> orders)
-
Method Summary
Modifier and Type Method Description final Stringget_id()The Radar ID of the trip. final StringgetExternalId()The external ID of the trip. final JSONObjectgetMetadata()The optional set of custom key-value pairs for the trip. final StringgetDestinationGeofenceTag()For trips with a destination, the tag of the destination geofence. final StringgetDestinationGeofenceExternalId()For trips with a destination, the external ID of the destination geofence. final RadarCoordinategetDestinationLocation()For trips with a destination, the location of the destination geofence. final Radar.RadarRouteModegetMode()The travel mode for the trip. final DoublegetEtaDistance()For trips with a destination, the distance to the destination geofence in meters based on the travel mode for the trip. final DoublegetEtaDuration()For trips with a destination, the ETA to the destination geofence in minutes based on the travel mode for the trip. final RadarTrip.RadarTripStatusgetStatus()The status of the trip. final Array<RadarTripOrder>getOrders()The orders associated with the trip. final JSONObjecttoJson()-
-
Constructor Detail
-
RadarTrip
RadarTrip(String _id, String externalId, JSONObject metadata, String destinationGeofenceTag, String destinationGeofenceExternalId, RadarCoordinate destinationLocation, Radar.RadarRouteMode mode, Double etaDistance, Double etaDuration, RadarTrip.RadarTripStatus status, Array<RadarTripOrder> orders)
-
-
Method Detail
-
getExternalId
final String getExternalId()
The external ID of the trip.
-
getMetadata
final JSONObject getMetadata()
The optional set of custom key-value pairs for the trip.
-
getDestinationGeofenceTag
final String getDestinationGeofenceTag()
For trips with a destination, the tag of the destination geofence.
-
getDestinationGeofenceExternalId
final String getDestinationGeofenceExternalId()
For trips with a destination, the external ID of the destination geofence.
-
getDestinationLocation
final RadarCoordinate getDestinationLocation()
For trips with a destination, the location of the destination geofence.
-
getMode
final Radar.RadarRouteMode getMode()
The travel mode for the trip.
-
getEtaDistance
final Double getEtaDistance()
For trips with a destination, the distance to the destination geofence in meters based on the travel mode for the trip.
-
getEtaDuration
final Double getEtaDuration()
For trips with a destination, the ETA to the destination geofence in minutes based on the travel mode for the trip.
-
getStatus
final RadarTrip.RadarTripStatus getStatus()
The status of the trip.
-
getOrders
final Array<RadarTripOrder> getOrders()
The orders associated with the trip.
-
toJson
final JSONObject toJson()
-
-
-
-