GooglePlaces Framework Reference

GMSPlaceRouteModifiers

@interface GMSPlaceRouteModifiers : NSObject

Encapsulates a set of optional conditions to satisfy when calculating the routes.

  • When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the Drive and TwoWheeler travel modes.

    Default value is false.

    Declaration

    Swift

    var avoidTolls: Bool { get set }

    Objective-C

    @property (nonatomic) BOOL avoidTolls;
  • When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the Drive and TwoWheeler travel modes.

    Default value is false.

    Declaration

    Swift

    var avoidHighways: Bool { get set }

    Objective-C

    @property (nonatomic) BOOL avoidHighways;
  • When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the Drive and TwoWheeler travel modes.

    Default value is false.

    Declaration

    Swift

    var avoidFerries: Bool { get set }

    Objective-C

    @property (nonatomic) BOOL avoidFerries;
  • When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the Walk travel modes.

    Default value is false.

    Declaration

    Swift

    var avoidIndoor: Bool { get set }

    Objective-C

    @property (nonatomic) BOOL avoidIndoor;
  • Declaration

    Swift

    init(avoidTolls: Bool, avoidHighways: Bool, avoidFerries: Bool, avoidIndoor: Bool)

    Objective-C

    - (instancetype)initWithAvoidTolls:(BOOL)avoidTolls
                         avoidHighways:(BOOL)avoidHighways
                          avoidFerries:(BOOL)avoidFerries
                           avoidIndoor:(BOOL)avoidIndoor;