PTRouteSegmentObject

Objective-C


@interface PTRouteSegmentObject : RouteSegmentObject

Swift

class PTRouteSegmentObject : RouteSegmentObject

This class encapsulates public transport route segment information.

  • Returns the segment name.

    Declaration

    Objective-C

    - (nonnull NSString *)getName;

    Swift

    func getName() -> String
  • Returns the platform code.

    Declaration

    Objective-C

    - (nonnull NSString *)getPlatformCode;

    Swift

    func getPlatformCode() -> String
  • Returns the arrival time.

    Declaration

    Objective-C

    - (nullable TimeObject *)getArrivalTime;

    Swift

    func getArrivalTime() -> TimeObject?
  • Returns the departure time.

    Declaration

    Objective-C

    - (nullable TimeObject *)getDepartureTime;

    Swift

    func getDepartureTime() -> TimeObject?
  • Returns true for wheelchair support.

    Declaration

    Objective-C

    - (BOOL)getHasWheelchairSupport;

    Swift

    func getHasWheelchairSupport() -> Bool
  • Returns the segment short name.

    Declaration

    Objective-C

    - (nonnull NSString *)getShortName;

    Swift

    func getShortName() -> String
  • Returns the segment route url.

    Declaration

    Objective-C

    - (nonnull NSString *)getRouteUrl;

    Swift

    func getRouteUrl() -> String
  • Returns the segment agency name.

    Declaration

    Objective-C

    - (nonnull NSString *)getAgencyName;

    Swift

    func getAgencyName() -> String
  • Returns the segment agency phone.

    Declaration

    Objective-C

    - (nonnull NSString *)getAgencyPhone;

    Swift

    func getAgencyPhone() -> String
  • Returns the segment agency url.

    Declaration

    Objective-C

    - (nonnull NSString *)getAgencyUrl;

    Swift

    func getAgencyUrl() -> String
  • Returns the segment agency fare url.

    Declaration

    Objective-C

    - (nonnull NSString *)getAgencyFareUrl;

    Swift

    func getAgencyFareUrl() -> String
  • Returns the segment line from.

    Declaration

    Objective-C

    - (nonnull NSString *)getLineFrom;

    Swift

    func getLineFrom() -> String
  • Returns the segment line towards.

    Declaration

    Objective-C

    - (nonnull NSString *)getLineTowards;

    Swift

    func getLineTowards() -> String
  • Returns the segment arrival delay in seconds.

    Declaration

    Objective-C

    - (int)getArrivalDelayInSeconds;

    Swift

    func getArrivalDelayInSeconds() -> Int32
  • Returns the segment departure delay in seconds.

    Declaration

    Objective-C

    - (int)getDepartureDelayInSeconds;

    Swift

    func getDepartureDelayInSeconds() -> Int32
  • Returns true for bicycle support.

    Declaration

    Objective-C

    - (BOOL)getHasBicycleSupport;

    Swift

    func getHasBicycleSupport() -> Bool
  • Returns true for stay on same transit.

    Declaration

    Objective-C

    - (BOOL)getStayOnSameTransit;

    Swift

    func getStayOnSameTransit() -> Bool
  • Returns the segment transit type.

    Declaration

    Objective-C

    - (TransitType)getTransitType;

    Swift

    func getTransitType() -> TransitType
  • Returns the segment realtime status.

    Declaration

    Objective-C

    - (RealtimeStatus)getRealtimeStatus;

    Swift

    func getRealtimeStatus() -> RealtimeStatus
  • Returns the segment line block id.

    Declaration

    Objective-C

    - (int)getLineBlockID;

    Swift

    func getLineBlockID() -> Int32
  • Returns the segment line color.

    Declaration

    Objective-C

    - (nonnull UIColor *)getLineColor;

    Swift

    func getLineColor() -> UIColor
  • Returns the segment line text color.

    Declaration

    Objective-C

    - (nonnull UIColor *)getLineTextColor;

    Swift

    func getLineTextColor() -> UIColor
  • Returns the segment alerts count.

    Declaration

    Objective-C

    - (int)getCountAlerts;

    Swift

    func getCountAlerts() -> Int32
  • Returns true if route segment is significant ( worth showing information about it ).

    Declaration

    Objective-C

    - (BOOL)isSignificant;

    Swift

    func isSignificant() -> Bool
  • Returns the segment departure time formatted.

    Declaration

    Objective-C

    - (nonnull NSString *)getDepartureTimeFormatted;

    Swift

    func getDepartureTimeFormatted() -> String
  • Returns the segment departure time unit formatted.

    Declaration

    Objective-C

    - (nonnull NSString *)getDepartureTimeUnitFormatted;

    Swift

    func getDepartureTimeUnitFormatted() -> String
  • Returns the segment arrival time formatted.

    Declaration

    Objective-C

    - (nonnull NSString *)getArrivalTimeFormatted;

    Swift

    func getArrivalTimeFormatted() -> String
  • Returns the segment arrival time unit formatted.

    Declaration

    Objective-C

    - (nonnull NSString *)getArrivalTimeUnitFormatted;

    Swift

    func getArrivalTimeUnitFormatted() -> String