Public Member Functions | |
RoutePlan () | |
void | setStart (final GeoCoordinates start) |
void | setStart (final GeoCoordinates start, final @Nullable String customName) |
void | setStart (final Waypoint waypoint) |
Waypoint | getStart () |
void | setDestination (final GeoCoordinates destination) |
void | setDestination (final GeoCoordinates destination, final @Nullable String customName) |
void | setDestination (final Waypoint waypoint) |
Waypoint | getDestination () |
void | addViaPoint (final GeoCoordinates viaPoint) |
void | addViaPoint (final GeoCoordinates viaPoint, final @Nullable String customName) |
void | addViaPoint (final Waypoint waypoint) |
List< Waypoint > | getViaPoints () |
void | setRoutingOptions (final RoutingOptions options) |
RoutingOptions | getRoutingOptions () |
int | describeContents () |
void | writeToParcel (final Parcel dest, final int flags) |
![]() | |
boolean | isValidParcelable () |
Static Public Attributes | |
static final Parcelable.Creator< RoutePlan > | CREATOR |
Protected Member Functions | |
RoutePlan (final Parcel in) | |
Additional Inherited Members | |
![]() | |
boolean | mIsValidParcelable = true |
RoutePlan contains all information needed to calculate a route. It contains start, destination and waypoints.
com.sygic.sdk.route.RoutePlan.RoutePlan | ( | ) |
Default constructor.
|
protected |
void com.sygic.sdk.route.RoutePlan.addViaPoint | ( | final GeoCoordinates | viaPoint | ) |
Adds a waypoint location to the route plan.
viaPoint | Location of viapoint |
void com.sygic.sdk.route.RoutePlan.addViaPoint | ( | final GeoCoordinates | viaPoint, |
final @Nullable String | customName | ||
) |
Adds a waypoint location to the route plan.
viaPoint | Location of viapoint |
customName | Name of waypoint |
void com.sygic.sdk.route.RoutePlan.addViaPoint | ( | final Waypoint | waypoint | ) |
Adds a waypoint location to the route plan.
waypoint | Waypoint representing a waypoint location |
int com.sygic.sdk.route.RoutePlan.describeContents | ( | ) |
For documentation, see android.os.Parcelable.describeContents()
Waypoint com.sygic.sdk.route.RoutePlan.getDestination | ( | ) |
RoutingOptions com.sygic.sdk.route.RoutePlan.getRoutingOptions | ( | ) |
Returns the wanted RoutingOptions.
Waypoint com.sygic.sdk.route.RoutePlan.getStart | ( | ) |
Returns the GeoCoordinates of starting position.
List<Waypoint> com.sygic.sdk.route.RoutePlan.getViaPoints | ( | ) |
Returns all the waypoints on the route.
void com.sygic.sdk.route.RoutePlan.setDestination | ( | final GeoCoordinates | destination | ) |
Sets a destination location for calculating a route.
destination | Location of destination point |
void com.sygic.sdk.route.RoutePlan.setDestination | ( | final GeoCoordinates | destination, |
final @Nullable String | customName | ||
) |
Sets a destination location for calculating a route.
destination | Location of destination point |
customName | Name of destination |
void com.sygic.sdk.route.RoutePlan.setDestination | ( | final Waypoint | waypoint | ) |
Sets a destination location for calculating a route.
void com.sygic.sdk.route.RoutePlan.setRoutingOptions | ( | final RoutingOptions | options | ) |
Sets the route options. This method does not retain a reference to options . If the options object is updated, then this method must be called again for the changes to be in effect.
options | The RoutingOptions to set. |
void com.sygic.sdk.route.RoutePlan.setStart | ( | final GeoCoordinates | start | ) |
Sets a start location for calculating a route.
start | Location of start point |
void com.sygic.sdk.route.RoutePlan.setStart | ( | final GeoCoordinates | start, |
final @Nullable String | customName | ||
) |
Sets a start location for calculating a route.
start | Location of start point |
customName | Name of start |
void com.sygic.sdk.route.RoutePlan.setStart | ( | final Waypoint | waypoint | ) |
Sets a start location for calculating a route.
waypoint | Waypoint representing a start location |
void com.sygic.sdk.route.RoutePlan.writeToParcel | ( | final Parcel | dest, |
final int | flags | ||
) |
For documentation, see android.os.Parcelable.writeToParcel()
|
static |