t.shape_id        = getStringField("shape_id", false);
t.bikes_allowed   = getIntField("bikes_allowed", false, 0, 2);
t.wheelchair_accessible = getIntField("wheelchair_accessible", false, 0, 2);
t.feed = feed;
t.feed_id = feed.feedId;
<BUG>feed.trips.put(t.trip_id, t);
}</BUG>
}
public static class Writer extends Entity.Writer<Trip> {
public Writer (GTFSFeed feed) {

t.shape_id        = getStringField("shape_id", false);
t.bikes_allowed   = getIntField("bikes_allowed", false, 0, 2);
t.wheelchair_accessible = getIntField("wheelchair_accessible", false, 0, 2);
t.feed = feed;
t.feed_id = feed.feedId;
feed.trips.put(t.trip_id, t);
getRefField("service_id", true, feed.services);
getRefField("route_id", true, feed.routes);
}
}
public static class Writer extends Entity.Writer<Trip> {
public Writer (GTFSFeed feed) {
