Skip to content

Commit

Permalink
Parse new routeID field (#285)
Browse files Browse the repository at this point in the history
* Parse new routeID field

* Update for new consistent capitalisation
  • Loading branch information
nighthawk authored May 24, 2023
1 parent daa0c11 commit 79d769a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/TripKit/model/API/RoutingAPIModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ extension TKAPI {
public var wheelchairAccessible: Bool?
public var operatorName: String?
public var operatorID: String?
public var routeID: String?
@DefaultEmptyArray public var stops: [TKAPI.ShapeStop]

// unscheduled
Expand All @@ -394,6 +395,7 @@ extension TKAPI {
case wheelchairAccessible
case operatorName = "operator"
case operatorID
case routeID
case stops
case name
case dismount
Expand Down
2 changes: 2 additions & 0 deletions Sources/TripKit/model/API/ServiceAPIModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ extension TKAPI {
// information about the service
public let serviceTripID: String
public let operatorID: String?
public let routeID: String?

public let operatorName: String
public let number: String?
Expand Down Expand Up @@ -69,6 +70,7 @@ extension TKAPI {
private enum CodingKeys: String, CodingKey {
case serviceTripID
case operatorID
case routeID

case operatorName = "operator"
case color = "serviceColor"
Expand Down

0 comments on commit 79d769a

Please sign in to comment.