toValue method
Implementation
int toValue() {
switch (this) {
case AMapTransitStrategy.AMapTransitStrategyFastest: return 0;
case AMapTransitStrategy.AMapTransitStrategyMinFare: return 1;
case AMapTransitStrategy.AMapTransitStrategyMinTransfer: return 2;
case AMapTransitStrategy.AMapTransitStrategyMinWalk: return 3;
case AMapTransitStrategy.AMapTransitStrategyMostComfortable: return 4;
case AMapTransitStrategy.AMapTransitStrategyAvoidSubway: return 5;
default: return 0;
}
}