Skip to content

Commit

Permalink
Add continuous pickup and dropoff messages to api response
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjacobs committed Dec 12, 2017
1 parent f5a2413 commit a9b460b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@
<dependency>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-gtfs</artifactId>
<version>1.3.5.7-vt</version>
<version>1.3.5.8-vt-SNAPSHOT</version>
</dependency>
<!-- Processing is used for the debug GUI (though we could probably use just Java2D) -->
<dependency>
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/org/opentripplanner/api/model/Leg.java
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,15 @@ public class Leg {
@JsonSerialize
public String drtDropOffMessage;


@XmlAttribute
@JsonSerialize
public String continuousPickupMessage;

@XmlAttribute
@JsonSerialize
public String continuousDropOffMessage;

/**
* Whether this leg is a transit leg or not.
* @return Boolean true if the leg is a transit leg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ private static void addTripFields(Leg leg, State[] states, Locale requestedLocal
leg.drtAdvanceBookMin = trip.getDrtAdvanceBookMin();
leg.drtPickupMessage = trip.getDrtPickupMessage();
leg.drtDropOffMessage = trip.getDrtDropOffMessage();
leg.continuousPickupMessage = trip.getContinuousPickupMessage();
leg.continuousDropOffMessage = trip.getContinuousDropOffMessage();

if (serviceDay != null) {
leg.serviceDate = serviceDay.getServiceDate().getAsString();
Expand Down

0 comments on commit a9b460b

Please sign in to comment.