-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from conveyal/update-trip-shape_id
Update trip#shape_id and frequency stop_times on pattern updates
- Loading branch information
Showing
13 changed files
with
597 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
335 changes: 271 additions & 64 deletions
335
src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.conveyal.gtfs.util; | ||
|
||
public class CalendarDTO { | ||
public Integer id; | ||
public String service_id; | ||
public Integer monday; | ||
public Integer tuesday; | ||
public Integer wednesday; | ||
public Integer thursday; | ||
public Integer friday; | ||
public Integer saturday; | ||
public Integer sunday; | ||
public String start_date; | ||
public String end_date; | ||
public String description; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.conveyal.gtfs.util; | ||
|
||
public class FrequencyDTO { | ||
public String trip_id; | ||
public Integer start_time; | ||
public Integer end_time; | ||
public Integer headway_secs; | ||
public Integer exact_times; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.conveyal.gtfs.util; | ||
|
||
public class PatternDTO { | ||
public Integer id; | ||
public String pattern_id; | ||
public String shape_id; | ||
public String route_id; | ||
public Integer direction_id; | ||
public Integer use_frequency; | ||
public String name; | ||
public PatternStopDTO[] pattern_stops; | ||
public ShapePointDTO[] shapes; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.conveyal.gtfs.util; | ||
|
||
public class PatternStopDTO { | ||
public Integer id; | ||
public String pattern_id; | ||
public String stop_id; | ||
public Integer default_travel_time; | ||
public Integer default_dwell_time; | ||
public Double shape_dist_traveled; | ||
public Integer drop_off_type; | ||
public Integer pickup_type; | ||
public Integer stop_sequence; | ||
public Integer timepoint; | ||
|
||
public PatternStopDTO (String patternId, String stopId, int stopSequence) { | ||
pattern_id = patternId; | ||
stop_id = stopId; | ||
stop_sequence = stopSequence; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.conveyal.gtfs.util; | ||
|
||
// TODO add fields | ||
public class ShapePointDTO { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.conveyal.gtfs.util; | ||
|
||
public class StopDTO { | ||
public Integer id; | ||
public String stop_id; | ||
public String stop_name; | ||
public String stop_code; | ||
public String stop_desc; | ||
public Double stop_lon; | ||
public Double stop_lat; | ||
public String zone_id; | ||
public String stop_url; | ||
public String stop_timezone; | ||
public String parent_station; | ||
public Integer location_type; | ||
public Integer wheelchair_boarding; | ||
} |
Oops, something went wrong.