Skip to content

Commit

Permalink
add agencyFarUrl in plan leg returned
Browse files Browse the repository at this point in the history
  • Loading branch information
zabuTNT committed Apr 21, 2023
1 parent 0ee80fa commit 2c71a65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/opentripplanner/api/model/Leg.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ public class Leg {

@JsonSerialize
public String agencyUrl;

@JsonSerialize
public String agencyFareUrl;

@JsonSerialize
public String agencyBrandingUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ private static void addTripFields(Leg leg, State[] states, Locale requestedLocal
leg.agencyName = agency.getName();
leg.agencyUrl = agency.getUrl();
leg.agencyBrandingUrl = agency.getBrandingUrl();
leg.agencyFareUrl = agency.getFareUrl();
leg.headsign = states[1].getBackDirection();
leg.route = lastOnboardTransitState.getBackEdge().getName(requestedLocale);
leg.routeColor = route.getColor();
Expand Down

0 comments on commit 2c71a65

Please sign in to comment.