From 76c09dbabcd0967ba2d7bab99be3b52076ba0e41 Mon Sep 17 00:00:00 2001 From: John Levin Date: Sun, 1 Oct 2023 19:23:51 -0500 Subject: [PATCH 1/9] Update passenger_events.schema.json to add location_ping_id --- spec/passenger_events.schema.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/passenger_events.schema.json b/spec/passenger_events.schema.json index 671836bc..7a846f74 100644 --- a/spec/passenger_events.schema.json +++ b/spec/passenger_events.schema.json @@ -31,6 +31,12 @@ "required": true } }, + { + "name": "location_ping_id", + "type": "string", + "title": "ID referencing vehicle_locations.location_ping_id" + "description": "Identifies a vehicle_location that is the location where the passenger_event occurred" + }, { "name": "trip_id_performed", "type": "string", @@ -140,6 +146,13 @@ "fields": "trip_id_performed" } }, + { + "fields": "location_ping_id", + "reference": { + "resource": "vehicle_locations", + "fields": "location_ping_id" + } + }, { "fields": ["service_date", "trip_id_performed", "scheduled_stop_sequence"], "reference": { From de86070a82244f17d696eec811f622630b4c807c Mon Sep 17 00:00:00 2001 From: John Levin Date: Sun, 1 Oct 2023 19:31:43 -0500 Subject: [PATCH 2/9] Update fare_transactions.schema.json to add reference to location_ping_id --- spec/fare_transactions.schema.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/fare_transactions.schema.json b/spec/fare_transactions.schema.json index 79bf5383..7da0e8b2 100644 --- a/spec/fare_transactions.schema.json +++ b/spec/fare_transactions.schema.json @@ -32,6 +32,12 @@ } }, { + "name": "location_ping_id", + "type": "string", + "title": "ID referencing vehicle_locations.location_ping_id" + "description": "Identifies a vehicle_location that is the location where the fare_transaction occurred" + }, + { "name": "amount", "type": "number", "description": "Value of the transaction.", @@ -197,6 +203,13 @@ "fields": "trip_id_performed" } }, + { + "fields": "location_ping_id", + "reference": { + "resource": "vehicle_locations", + "fields": "location_ping_id" + } + }, { "fields": ["service_date", "trip_id_performed", "scheduled_stop_sequence"], "reference": { From 5805f52d92a58d40871ce052aa00371e793dce5b Mon Sep 17 00:00:00 2001 From: John Levin Date: Sun, 1 Oct 2023 19:43:48 -0500 Subject: [PATCH 3/9] Update fare_transactions.schema.json fixed missing comma --- spec/fare_transactions.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/fare_transactions.schema.json b/spec/fare_transactions.schema.json index 7da0e8b2..3d2ae4aa 100644 --- a/spec/fare_transactions.schema.json +++ b/spec/fare_transactions.schema.json @@ -34,7 +34,7 @@ { "name": "location_ping_id", "type": "string", - "title": "ID referencing vehicle_locations.location_ping_id" + "title": "ID referencing vehicle_locations.location_ping_id", "description": "Identifies a vehicle_location that is the location where the fare_transaction occurred" }, { From 5e8f35e7a609573f37dbb1bf0845550be486b7bf Mon Sep 17 00:00:00 2001 From: John Levin Date: Sun, 1 Oct 2023 19:44:09 -0500 Subject: [PATCH 4/9] Update passenger_events.schema.json fixed missing comma --- spec/passenger_events.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/passenger_events.schema.json b/spec/passenger_events.schema.json index 7a846f74..63a071c6 100644 --- a/spec/passenger_events.schema.json +++ b/spec/passenger_events.schema.json @@ -34,7 +34,7 @@ { "name": "location_ping_id", "type": "string", - "title": "ID referencing vehicle_locations.location_ping_id" + "title": "ID referencing vehicle_locations.location_ping_id", "description": "Identifies a vehicle_location that is the location where the passenger_event occurred" }, { From 8ef4b4b3e5f71f8d9f34df55f35416bc3f4f26fd Mon Sep 17 00:00:00 2001 From: John Levin Date: Wed, 4 Oct 2023 16:26:52 -0500 Subject: [PATCH 5/9] Update fare_transactions.schema.json to refine the description of the location_ping_id field --- spec/fare_transactions.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/fare_transactions.schema.json b/spec/fare_transactions.schema.json index 3d2ae4aa..c8e78180 100644 --- a/spec/fare_transactions.schema.json +++ b/spec/fare_transactions.schema.json @@ -35,7 +35,7 @@ "name": "location_ping_id", "type": "string", "title": "ID referencing vehicle_locations.location_ping_id", - "description": "Identifies a vehicle_location that is the location where the fare_transaction occurred" + "description": "Identifies the vehicle location where the fare transaction occurred" }, { "name": "amount", From 5e76ff5d87fa6061cea378be784a13b33e7271dc Mon Sep 17 00:00:00 2001 From: John Levin Date: Wed, 4 Oct 2023 16:27:33 -0500 Subject: [PATCH 6/9] Update passenger_events.schema.json to refine the description of the location_ping_id field --- spec/passenger_events.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/passenger_events.schema.json b/spec/passenger_events.schema.json index 63a071c6..cc8d16b4 100644 --- a/spec/passenger_events.schema.json +++ b/spec/passenger_events.schema.json @@ -35,7 +35,7 @@ "name": "location_ping_id", "type": "string", "title": "ID referencing vehicle_locations.location_ping_id", - "description": "Identifies a vehicle_location that is the location where the passenger_event occurred" + "description": "Identifies the vehicle location where the passenger event occurred" }, { "name": "trip_id_performed", From ac7e70c4c82ef0de5ec372a47a8764d8f31122b2 Mon Sep 17 00:00:00 2001 From: John Levin Date: Thu, 12 Oct 2023 07:54:56 -0500 Subject: [PATCH 7/9] Update fare_transactions.csv to add new location_id field --- samples/template/TIDES/fare_transactions.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/template/TIDES/fare_transactions.csv b/samples/template/TIDES/fare_transactions.csv index ef3b7eea..ba64420d 100644 --- a/samples/template/TIDES/fare_transactions.csv +++ b/samples/template/TIDES/fare_transactions.csv @@ -1 +1 @@ -transaction_id,date,timestamp,amount,currency_type,fare_action,trip_id_performed,stop_sequence,vehicle_id,device_id,fare_id,stop_id,group_size,media_type,rider_category,fare_product,fare_period,fare_capped,fare_media_id,fare_media_id_purchased,balance,service_date,event_timestamp +transaction_id,date,timestamp,location_id,amount,currency_type,fare_action,trip_id_performed,stop_sequence,vehicle_id,device_id,fare_id,stop_id,group_size,media_type,rider_category,fare_product,fare_period,fare_capped,fare_media_id,fare_media_id_purchased,balance,service_date,event_timestamp From 26cb092255460ba779eb9998c700eb4d07cdcd7c Mon Sep 17 00:00:00 2001 From: John Levin Date: Thu, 12 Oct 2023 07:56:04 -0500 Subject: [PATCH 8/9] Update passenger_events.csv to add new location id field --- samples/template/TIDES/passenger_events.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/template/TIDES/passenger_events.csv b/samples/template/TIDES/passenger_events.csv index 77a2ee92..09ac509f 100644 --- a/samples/template/TIDES/passenger_events.csv +++ b/samples/template/TIDES/passenger_events.csv @@ -1 +1 @@ -passenger_event_id,service_date,event_timestamp,trip_id_performed,trip_id_scheduled,trip_stop_sequence,scheduled_stop_sequence,event_type,vehicle_id,device_id,train_car_id,stop_id,pattern_id,event_count +passenger_event_id,service_date,event_timestamp,location_ping_id,trip_id_performed,trip_id_scheduled,trip_stop_sequence,scheduled_stop_sequence,event_type,vehicle_id,device_id,train_car_id,stop_id,pattern_id,event_count From 51e66b85d8fa154a848320869eef0ae6d6fd12cc Mon Sep 17 00:00:00 2001 From: John Levin Date: Thu, 12 Oct 2023 07:56:29 -0500 Subject: [PATCH 9/9] Update fare_transactions.csv to correct location id field name --- samples/template/TIDES/fare_transactions.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/template/TIDES/fare_transactions.csv b/samples/template/TIDES/fare_transactions.csv index ba64420d..530c18b9 100644 --- a/samples/template/TIDES/fare_transactions.csv +++ b/samples/template/TIDES/fare_transactions.csv @@ -1 +1 @@ -transaction_id,date,timestamp,location_id,amount,currency_type,fare_action,trip_id_performed,stop_sequence,vehicle_id,device_id,fare_id,stop_id,group_size,media_type,rider_category,fare_product,fare_period,fare_capped,fare_media_id,fare_media_id_purchased,balance,service_date,event_timestamp +transaction_id,date,timestamp,location_ping_id,amount,currency_type,fare_action,trip_id_performed,stop_sequence,vehicle_id,device_id,fare_id,stop_id,group_size,media_type,rider_category,fare_product,fare_period,fare_capped,fare_media_id,fare_media_id_purchased,balance,service_date,event_timestamp