Class PoisOnRouteOptions
java.lang.Object
com.trimblemaps.navigation.plugins.poisonroute.model.PoisOnRouteOptions
- All Implemented Interfaces:
android.os.Parcelable
Create a PlaceOptions object which can be used to customize the autocomplete geocoder results and the UI component. There are two modes to further change the autocomplete UI to fit your app better.
- Full screen mode: will place all the search history, results, and injected places into a view which has a width equal to the app width.
- Card view mode: the place search history, results, and injected places in into a
CardView
- Since:
- 0.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuild a new instance of thePoisOnRouteOptionsclass using this inner builder class.Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault timeout in milliseconds for the request to find POIs along the routestatic final intMode for launching the autocomplete view as a floating overlaystatic final intMode for launching the autocomplete view in fullscreen.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PoisOnRouteOptions.Builderbuilder()Build a new instance of thePoisOnRouteOptionsclass using this method.com.trimblemaps.api.poi.v1.TrimbleMapsPois.BuilderList<com.trimblemaps.geojson.Point> Coordinates describing the route (origin, destination and any intermediate stops)abstract List<com.trimblemaps.api.directions.v1.models.DirectionsRoute> The list of directions, to be used to draw the route on the mapabstract Integerabstract IntegerlegIndex()abstract DoubleThe maximum distance (in meters) to look ahead on the route for POIsabstract com.trimblemaps.mapsdk.plugins.places.autocomplete.model.PlaceOptionsPlaceOptions contains a number of options to control the UI and searchabstract com.trimblemaps.api.directions.v1.models.RouteOptionsThe RouteOptions that should be used when finding POIs along the route (contains the coordinates of the route, the routing profile, etc.)abstract inttimeout()The timeout in milliseconds for the request to find POIs along the routeabstract StringtripId()abstract intviewMode()Set the autocomplete's layout view mode toMODE_FULLSCREEN, or @link #MODE_FLOATING} which determines which layout you'd like to use for your autocomplete view.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface android.os.Parcelable
describeContents, writeToParcel
-
Field Details
-
MODE_FULLSCREEN
public static final int MODE_FULLSCREENMode for launching the autocomplete view in fullscreen.- Since:
- 0.1.0
- See Also:
-
MODE_FLOATING
public static final int MODE_FLOATINGMode for launching the autocomplete view as a floating overlay- Since:
- 0.1.0
- See Also:
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUTDefault timeout in milliseconds for the request to find POIs along the route- See Also:
-
-
Constructor Details
-
PoisOnRouteOptions
public PoisOnRouteOptions()
-
-
Method Details
-
placeOptions
@Nullable public abstract com.trimblemaps.mapsdk.plugins.places.autocomplete.model.PlaceOptions placeOptions()PlaceOptions contains a number of options to control the UI and search- Returns:
- the number of past search results returned by the geocoder
-
routeOptions
@NonNull public abstract com.trimblemaps.api.directions.v1.models.RouteOptions routeOptions()The RouteOptions that should be used when finding POIs along the route (contains the coordinates of the route, the routing profile, etc.)- Returns:
- the route options used
-
tripId
-
legIndex
-
geometryIndex
-
coordinates
Coordinates describing the route (origin, destination and any intermediate stops)- Returns:
- the list of coordinates describing the route
-
maxDistanceAhead
The maximum distance (in meters) to look ahead on the route for POIs- Returns:
- maximum distance in meters
-
viewMode
public abstract int viewMode()Set the autocomplete's layout view mode toMODE_FULLSCREEN, or @link #MODE_FLOATING} which determines which layout you'd like to use for your autocomplete view.- Returns:
- an integer representing either the
MODE_FULLSCREENmode - Since:
- 0.1.0
-
timeout
public abstract int timeout()The timeout in milliseconds for the request to find POIs along the route- Returns:
- an integer representing the timeout in milliseconds
-
directions
@Nullable public abstract List<com.trimblemaps.api.directions.v1.models.DirectionsRoute> directions()The list of directions, to be used to draw the route on the map- Returns:
-
buildPoiSearch
public com.trimblemaps.api.poi.v1.TrimbleMapsPois.Builder buildPoiSearch() -
builder
Build a new instance of thePoisOnRouteOptionsclass using this method. It will return thePoisOnRouteOptions.Builderwhich can be used to customize the users experience.- Returns:
- an instance of
PoisOnRouteOptions.Builderused to create a newPoisOnRouteOptionsinstance - Since:
- 0.1.0
-