On-demand Rides and Deliveries Solution is currently available only to select partners.
Contact sales to learn more.
Send feedback
RoutingOptions.RoutingStrategy
Stay organized with collections
Save and categorize content based on your preferences.
The routing strategy specifies how routes are ranked, which affects the route that is chosen
initially, and during re-routing. The default is DEFAULT_BEST
.
Constant Summary
int
DEFAULT_BEST
Ranks routes by NavSDK's default cost model.
int
SHORTER
Ranks routes by distance, shortest first
Inherited Method Summary
From interface
java.lang.annotation.Annotation
abstract
Class<? extends Annotation>
annotationType ()
abstract
boolean
equals (Object arg0)
abstract
int
hashCode ()
abstract
String
toString ()
Constants
public
static
final
int
DEFAULT_BEST
Ranks routes by NavSDK's default cost model. This is the default routing strategy for
navigating.
Constant Value:
0
public
static
final
int
SHORTER
Ranks routes by distance, shortest first
Constant Value:
1
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-02-01 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?