-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class TravelPoint implements Parcelable
Data class that defines Travel Point model, which is a location user would like to travel through using a route.
This is a general concept applied to origin, waypoints and final destination.
-
-
Field Summary
Fields Modifier and Type Field Description private final GeoLocationlocationprivate final BooleanautoPlannedprivate final ChargingPlanchargingPlan
-
Constructor Summary
Constructors Constructor Description TravelPoint(GeoLocation location, Boolean autoPlanned, ChargingPlan chargingPlan)
-
Method Summary
Modifier and Type Method Description final GeoLocationgetLocation()The GeoLocation information of current travel point passed in through route request. final BooleangetAutoPlanned()Check whether current travel point is automatically added by smart trip planning, for example EV trip planning function. final ChargingPlangetChargingPlan()Get the information for how to charge vehicle at this location. -
-
Constructor Detail
-
TravelPoint
TravelPoint(GeoLocation location, Boolean autoPlanned, ChargingPlan chargingPlan)
-
-
Method Detail
-
getLocation
final GeoLocation getLocation()
The GeoLocation information of current travel point passed in through route request.
-
getAutoPlanned
final Boolean getAutoPlanned()
Check whether current travel point is automatically added by smart trip planning, for example EV trip planning function.
-
getChargingPlan
final ChargingPlan getChargingPlan()
Get the information for how to charge vehicle at this location. The value will only be valid when charging is planned at this location. This only provides information related to the charging action. For detailed static or dynamic information of the charging station, please use the placeId in location to query from Entity Service, for example charger brand, open hours, or nearby amenities.
-
-
-
-