Skip to content

Commit fbd7363

Browse files
committed
Hotfix: round geo coordinates
1 parent 8e796b7 commit fbd7363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/double_gis_monitor/pipeline/dispatch.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ defmodule DoubleGisMonitor.Pipeline.Dispatch do
395395

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

401401
defp append_geo(msg, _e), do: msg

0 commit comments

Comments
 (0)