GoogleNavigation Framework Reference

GMSNavigationTravelMode

enum GMSNavigationTravelMode : NSInteger {}

The different travel modes that can be used for navigation.

  • Driving routes will be fetched, and the reported user course will be based on the direction of movement.

    Declaration

    Swift

    case driving = 0

    Objective-C

    GMSNavigationTravelModeDriving = 0
  • Cycling routes will be fetched, and the reported user course will be based on the compass direction the device is facing.

    Declaration

    Swift

    case cycling = 1

    Objective-C

    GMSNavigationTravelModeCycling
  • Walking routes will be fetched, and the reported user course will be based on the compass direction the device is facing.

    Declaration

    Swift

    case walking = 2

    Objective-C

    GMSNavigationTravelModeWalking
  • Two-wheeler routes will be fetched, and the reported user course will be based on the direction of movement.

    Declaration

    Swift

    case twoWheeler = 3

    Objective-C

    GMSNavigationTravelModeTwoWheeler
  • Taxicab routes will be fetched, and the reported user course will be based on the direction of movement.

    Declaration

    Swift

    case taxicab = 4

    Objective-C

    GMSNavigationTravelModeTaxicab