diff --git a/lib/concentrate/parser/gtfs_realtime_enhanced.ex b/lib/concentrate/parser/gtfs_realtime_enhanced.ex index 6fb21e25..b6b7efd4 100644 --- a/lib/concentrate/parser/gtfs_realtime_enhanced.ex +++ b/lib/concentrate/parser/gtfs_realtime_enhanced.ex @@ -300,7 +300,7 @@ defmodule Concentrate.Parser.GTFSRealtimeEnhanced do defp calculate_uncertainty("mid_trip"), do: 60 defp calculate_uncertainty("at_terminal"), do: 120 - defp calculate_uncertainty("reverse_prediction"), do: 360 + defp calculate_uncertainty("reverse_trip"), do: 360 defp schedule_relationship(nil), do: :SCHEDULED diff --git a/test/concentrate/parser/gtfs_realtime_enhanced_test.exs b/test/concentrate/parser/gtfs_realtime_enhanced_test.exs index b07a3b55..882d494e 100644 --- a/test/concentrate/parser/gtfs_realtime_enhanced_test.exs +++ b/test/concentrate/parser/gtfs_realtime_enhanced_test.exs @@ -428,13 +428,13 @@ defmodule Concentrate.Parser.GTFSRealtimeEnhancedTest do assert stu.uncertainty == 120 end - test "decodes reverse_prediction update_type to determine uncertainty value" do + test "decodes reverse_trip update_type to determine uncertainty value" do update = %{ "trip" => %{ "trip_id" => "trip", "route_id" => "route" }, - "update_type" => "reverse_prediction", + "update_type" => "reverse_trip", "stop_time_update" => [ %{ "arrival" => %{"time" => 100, "uncertainty" => 500},