~ihabunek/triglav

050099a5e4192ecf324b893776ad231b28b2223a — Ivan Habunek 3 months ago a128d7b
Squash bugs
2 files changed, 2 insertions(+), 2 deletions(-)

M lib/mix/tasks/triglav/osmosis_update.ex
M lib/triglav/derived/public_transport.ex
M lib/mix/tasks/triglav/osmosis_update.ex => lib/mix/tasks/triglav/osmosis_update.ex +1 -1
@@ 18,7 18,7 @@ defmodule Mix.Tasks.Triglav.OsmosisUpdate do
        Logger.info("Done. No update available")

      {:ok, {:updated_to, state}} ->
        Logger.info("Updated to #{state.sequence_no} #{state.timestamp}")
        Logger.info("Updated to #{state.sequence_number} #{state.timestamp}")
        Logger.info("Regenerating derived data")
        PublicTransport.generate()


M lib/triglav/derived/public_transport.ex => lib/triglav/derived/public_transport.ex +1 -1
@@ 36,7 36,7 @@ defmodule Triglav.Derived.PublicTransport do
    relations_map = Map.new(relations, &{&1.id, &1})
    ways_map = Osmosis.list_ways(relations) |> Map.new(&{&1.id, &1})
    routes_map = Gtfs.list_routes() |> Map.new(&{&1.id, &1})
    distinct_trip_map = Gtfs.list_distinct_trips() |> Map.new(&{{&1.route_id, &1.stops}, &1})
    distinct_trip_map = Gtfs.list_distinct_trips() |> Map.new(&{{&1.route_id, &1.stop_ids}, &1})
    platform_members = relations |> Enum.map(& &1.id) |> Osmosis.list_platform_members()
    platform_member_map = Map.new(platform_members, &{{&1.relation_id, &1.sequence_id}, &1})