Skip to content

Commit

Permalink
Hotfix: round geo coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
meequrox committed May 12, 2024
1 parent 8e796b7 commit e3d95fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/double_gis_monitor/pipeline/dispatch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ defmodule DoubleGisMonitor.Pipeline.Dispatch do

defp append_geo(msg, %{:coordinates => %{:lat => lat, :lon => lon}})
when is_float(lat) and is_float(lon) do
msg <> "\t<span class=\"tg-spoiler\">#{lon},#{lat}</span>"
msg <> " <span class=\"tg-spoiler\">#{Float.round(lat, 6)}, #{Float.round(lon, 6)}</span>"
end

defp append_geo(msg, _e), do: msg
Expand Down

0 comments on commit e3d95fd

Please sign in to comment.