toValue method

int toValue()

Implementation

int toValue() {
  switch (this) {
    case AMapRouteSearchType.AMapRouteSearchTypeDriving: return 0;
    case AMapRouteSearchType.AMapRouteSearchTypeTransit: return 1;
    case AMapRouteSearchType.AMapRouteSearchTypeWalking: return 2;
    default: return 0;
  }
}