public class RoutePointPackage
extends java.lang.Object
Constructor and Description |
---|
RoutePointPackage(java.util.List<PointMapItem> routePoints,
java.util.Map<java.lang.String,NavigationCue> pointCues)
Constructor for a successful route point package
|
RoutePointPackage(java.lang.String errorMessage)
Constructor for a route point package that has yielded an error
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getError()
Returns the error message that was set for this route point package (if any).
|
java.util.Map<java.lang.String,NavigationCue> |
getPointCues()
Returns the point cues if this is successful route point package.
|
java.util.List<PointMapItem> |
getRoutePoints()
Returns the points on the route if this is a successful route point package.
|
public RoutePointPackage(java.util.List<PointMapItem> routePoints, java.util.Map<java.lang.String,NavigationCue> pointCues)
routePoints
- list of point map items of the route, in order.pointCues
- map from UIDs of point map items on the route to the navigation
cues set for those points.public RoutePointPackage(java.lang.String errorMessage)
public java.util.List<PointMapItem> getRoutePoints()
public java.util.Map<java.lang.String,NavigationCue> getPointCues()
public java.lang.String getError()