Examples of StopBean


Examples of org.onebusaway.transit_data.model.StopBean

    List<SyndEntry> entries = new ArrayList<SyndEntry>();
    _feed.setEntries(entries);

    for (TripProblemReportBean report : reports) {

      StopBean stop = report.getStop();
      TripBean trip = report.getTrip();

      SyndEntry entry = new SyndEntryImpl();

      StringBuilder entryTitle = new StringBuilder();
      if (trip == null) {
        entryTitle.append("trip_id=");
        entryTitle.append(report.getTripId());
        entryTitle.append(" (?)");
      } else {
        entryTitle.append(RoutePresenter.getNameForRoute(trip));
        entryTitle.append(" - ");
        entryTitle.append(trip.getTripHeadsign());
      }
      if (stop == null) {
        entryTitle.append(" - stop_id=");
        entryTitle.append(report.getStopId());
        entryTitle.append(" (?)");
      } else {
        entryTitle.append(" - ");
        entryTitle.append(getText("StopNum", new String[] {stop.getCode()}));
        entryTitle.append(" - ");
        entryTitle.append(stop.getName());
        if (stop.getDirection() != null) {
          entryTitle.append(" - ");
          entryTitle.append(getText("bound", new String[] {stop.getDirection()}));
        }
      }

      StringBuilder entryUrl = new StringBuilder();
      entryUrl.append(baseUrl);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.