PTRouteObject
Objective-C
@interface PTRouteObject : RouteObject
Swift
class PTRouteObject : RouteObject
This class encapsulates public transport route information.
-
Get Fare.
Declaration
Objective-C
- (nonnull NSString *)getPTFare;
Swift
func getPTFare() -> String
-
Get Frequency.
Declaration
Objective-C
- (NSInteger)getPTFrequency;
Swift
func getPTFrequency() -> Int
-
Check if the solution meets all the preferences.
Declaration
Objective-C
- (BOOL)getPTRespectsAllConditions;
Swift
func getPTRespectsAllConditions() -> Bool
-
Get number of Buy Ticket Information objects for PT route.
Declaration
Objective-C
- (NSInteger)getCountBuyTicketInformation;
Swift
func getCountBuyTicketInformation() -> Int
-
Get the buy ticket URL.
Declaration
Objective-C
- (nonnull NSString *)getBuyTicketURL:(int)index;
Swift
func getBuyTicketURL(_ index: Int32) -> String
Parameters
index
The Buy Ticket Information index.
-
Get indexes of the affected solution parts.
Declaration
Objective-C
- (nonnull NSArray<NSNumber *> *)getSolutionPartIndexes:(int)index;
Swift
func getSolutionPartIndexes(_ index: Int32) -> [NSNumber]
Parameters
index
The Buy Ticket Information index.