GMSPlaceRoutingParameters
@interface GMSPlaceRoutingParameters : NSObjectParameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results.
-
An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used.
Declaration
Swift
var origin: CLLocationCoordinate2D { get }Objective-C
@property (nonatomic, readonly) CLLocationCoordinate2D origin; -
The travel mode.
Declaration
Swift
var travelMode: GMSPlaceTravelMode { get }Objective-C
@property (nonatomic, readonly) GMSPlaceTravelMode travelMode; -
The route modifiers.
Declaration
Swift
var routeModifiers: GMSPlaceRouteModifiers? { get }Objective-C
@property (nonatomic, readonly, nullable) GMSPlaceRouteModifiers *routeModifiers; -
The routing preference specifies factors to take into consideration when calculating the route.
Declaration
Swift
var routingPreference: GMSPlaceRoutingPreference { get }Objective-C
@property (nonatomic, readonly) GMSPlaceRoutingPreference routingPreference; -
Inits the routing parameters.
Declaration
Swift
convenience init(travelMode: GMSPlaceTravelMode, routeModifiers: GMSPlaceRouteModifiers?, routingPreference: GMSPlaceRoutingPreference)Objective-C
- (nonnull instancetype) initWithTravelMode:(GMSPlaceTravelMode)travelMode routeModifiers:(nullable GMSPlaceRouteModifiers *)routeModifiers routingPreference:(GMSPlaceRoutingPreference)routingPreference;Parameters
travelModeThe travel mode.
routeModifiersThe route modifiers.
routingPreferenceThe routing preference.
-
Inits the routing parameters.
Declaration
Swift
init(origin: CLLocationCoordinate2D, travelMode: GMSPlaceTravelMode, routeModifiers: GMSPlaceRouteModifiers?, routingPreference: GMSPlaceRoutingPreference)Objective-C
- (nonnull instancetype) initWithOrigin:(CLLocationCoordinate2D)origin travelMode:(GMSPlaceTravelMode)travelMode routeModifiers:(nullable GMSPlaceRouteModifiers *)routeModifiers routingPreference:(GMSPlaceRoutingPreference)routingPreference;Parameters
originThe origin.
travelModeThe travel mode.
routeModifiersThe route modifiers.
routingPreferenceThe routing preference.
-
Unavailable
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;