public static final class OfflineRoute.Builder extends Object
Modifier and Type | Method and Description |
---|---|
OfflineRoute.Builder |
bicycleType(String bicycleType)
The type of bicycle, either Road, Hybrid, City, Cross, Mountain.
|
OfflineRoute |
build()
This uses the provided parameters set using the
OfflineRoute.Builder and adds the required
settings for offline navigation to work correctly. |
OfflineRoute.Builder |
cyclewayBias(Float cyclewayBias)
A cyclist's propensity to use roads alongside other vehicles.
|
OfflineRoute.Builder |
cyclingSpeed(Float cyclingSpeed)
Cycling speed is the average travel speed along smooth, flat roads.
|
OfflineRoute.Builder |
ferryBias(Float ferryBias)
This value indicates the willingness to take ferries.
|
OfflineRoute.Builder |
hillBias(Float hillBias)
A cyclist's desire to tackle hills in their routes.
|
OfflineRoute.Builder |
roughSurfaceBias(Float roughSurfaceBias)
This value is meant to represent how much a cyclist wants to favor or avoid roads with poor/rough
surfaces relative to the bicycle type being used.
|
OfflineRoute.Builder |
waypointTypes(List<String> waypointTypes)
The same waypoint types the user originally made when the request was made.
|
public OfflineRoute.Builder bicycleType(@Nullable String bicycleType)
bicycleType
- the type of bicyclepublic OfflineRoute.Builder cyclingSpeed(@Nullable Float cyclingSpeed)
cyclingSpeed
- in kmhpublic OfflineRoute.Builder cyclewayBias(@Nullable Float cyclewayBias)
cyclewayBias
- a cyclist's propensity to use roads alongside other vehiclespublic OfflineRoute.Builder hillBias(@Nullable Float hillBias)
hillBias
- a cyclist's desire to tackle hills in their routespublic OfflineRoute.Builder ferryBias(@Nullable Float ferryBias)
ferryBias
- the willingness to take ferriespublic OfflineRoute.Builder roughSurfaceBias(@Nullable Float roughSurfaceBias)
roughSurfaceBias
- how much a cyclist wants to avoid roads with poor surfacespublic OfflineRoute.Builder waypointTypes(@Nullable List<String> waypointTypes)
waypointTypes
- break, through or omitted nullpublic OfflineRoute build()
OfflineRoute.Builder
and adds the required
settings for offline navigation to work correctly.OfflineRoute
© 2019 Mapbox. All rights reserved.