@golemio/pid 2.13.9-dev.1322542038 → 2.13.9-dev.1324870832
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@ AS SELECT sub.trips_id AS rt_trip_id,
|
|
|
6
6
|
sub.last_stop_departure_time AS stop_departure,
|
|
7
7
|
sub.stop_arr_delay,
|
|
8
8
|
sub.stop_dep_delay,
|
|
9
|
-
sub.
|
|
9
|
+
sub.stop_name AS stop_name,
|
|
10
10
|
sub.lat,
|
|
11
11
|
sub.lng
|
|
12
12
|
FROM ( SELECT rt_position.trips_id,
|
|
@@ -14,7 +14,7 @@ AS SELECT sub.trips_id AS rt_trip_id,
|
|
|
14
14
|
rt_position.last_stop_id,
|
|
15
15
|
rt_position.last_stop_arrival_time,
|
|
16
16
|
rt_position.last_stop_departure_time,
|
|
17
|
-
|
|
17
|
+
rs.stop_name,
|
|
18
18
|
rs.stop_lat AS lat,
|
|
19
19
|
rs.stop_lon AS lng,
|
|
20
20
|
max(rt_position.delay_stop_arrival) AS stop_arr_delay,
|
|
@@ -22,7 +22,7 @@ AS SELECT sub.trips_id AS rt_trip_id,
|
|
|
22
22
|
FROM vehiclepositions_positions rt_position
|
|
23
23
|
JOIN ropidgtfs_stops rs ON rs.stop_id::text = rt_position.last_stop_id::text
|
|
24
24
|
WHERE (rt_position.delay_stop_arrival IS NOT NULL OR rt_position.delay_stop_departure IS NOT NULL) AND (rt_position.state_position::text = ANY (ARRAY['on_track'::character varying::text, 'at_stop'::character varying::text, 'after_track'::character varying::text]))
|
|
25
|
-
GROUP BY rt_position.trips_id, rt_position.last_stop_sequence, rt_position.last_stop_id, rt_position.last_stop_arrival_time, rt_position.last_stop_departure_time,
|
|
25
|
+
GROUP BY rt_position.trips_id, rt_position.last_stop_sequence, rt_position.last_stop_id, rt_position.last_stop_arrival_time, rt_position.last_stop_departure_time, rs.stop_name, rs.stop_lat, rs.stop_lon) sub
|
|
26
26
|
ORDER BY sub.trips_id, sub.last_stop_sequence;
|
|
27
27
|
|
|
28
28
|
CREATE OR REPLACE VIEW v_public_vehiclepositions_past_stop_times
|