@golemio/pid 3.9.5-dev.1738105452 → 3.9.5-dev.1738503102

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.
@@ -1 +1 @@
1
- DROP function get_ropidgtfs_stops_by_asw(int, int)
1
+ DROP function get_ropidgtfs_stops_by_asw(int, varchar)
@@ -1,4 +1,4 @@
1
- CREATE OR REPLACE FUNCTION get_ropidgtfs_stops_by_asw(aswnodeid INT, aswstopid INT)
1
+ CREATE OR REPLACE FUNCTION get_ropidgtfs_stops_by_asw(aswnodeid INT, platformcode varchar)
2
2
  RETURNS TEXT AS $$
3
3
  DECLARE
4
4
  stop_ids TEXT;
@@ -6,7 +6,7 @@ BEGIN
6
6
  SELECT STRING_AGG(stop_id::TEXT, ', ') INTO stop_ids
7
7
  FROM ropidgtfs_stops
8
8
  WHERE asw_node_id = aswnodeid
9
- AND asw_stop_id = aswstopid;
9
+ AND platform_code = platformcode;
10
10
 
11
11
  RETURN stop_ids;
12
12
  END;
@@ -50,7 +50,7 @@ class RawQueryProvider {
50
50
  LEFT JOIN ropidgtfs_precomputed_minmax_stop_sequences
51
51
  ON ropidgtfs_trips.trip_id = ropidgtfs_precomputed_minmax_stop_sequences.trip_id
52
52
  WHERE ropidgtfs_routes.route_short_name LIKE :cisLineShortName
53
- AND ropidgtfs_stop_times.stop_id = ANY(STRING_TO_ARRAY(get_ropidgtfs_stops_by_asw(:startAswNodeID, :startAswStopId), ','))
53
+ AND ropidgtfs_stop_times.stop_id = ANY(STRING_TO_ARRAY(get_ropidgtfs_stops_by_asw(:startAswNodeID, :startCisStopPlatformCode), ','))
54
54
  AND stop_sequence = '1'
55
55
  AND normalize_departure_time(ropidgtfs_stop_times.departure_time) = TO_CHAR(
56
56
  (:startDateFormatted at time zone 'Europe/Prague'), 'FMHH24:MI:SS'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/pid",
3
- "version": "3.9.5-dev.1738105452",
3
+ "version": "3.9.5-dev.1738503102",
4
4
  "description": "Golemio PID Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",