Skip to content

Commit

Permalink
Merge branch 'master' into gbfs_metadata_versions_first_feed
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti authored Oct 22, 2024
2 parents f4ced08 + dd0e6c8 commit 5f70719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/transport/lib/transport/gbfs_to_geojson.ex
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ defmodule Transport.GbfsToGeojson do

# From GBFS 3.0 onwards
defp station_name(%{"name" => names}) do
names |> hd() |> Map.get("name")
names |> hd() |> Map.get("text")
end

@spec add_station_status(map(), map()) :: map()
Expand Down
2 changes: 1 addition & 1 deletion apps/transport/test/transport/gbfs_to_geojson_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ defmodule Transport.GbfsToGeojsonTest do
|> Jason.decode!()
|> get_in(["data", "stations"])
|> Enum.map(fn %{"name" => name} = payload ->
Map.put(payload, "name", [%{"language" => "fr", "name" => name}])
Map.put(payload, "name", [%{"language" => "fr", "text" => name}])
end)

%{"data" => %{"stations" => stations}} |> Jason.encode!()
Expand Down

0 comments on commit 5f70719

Please sign in to comment.