clean up some warnings

This commit is contained in:
Graham McIntire 2023-01-30 14:05:40 -06:00
parent 9056331c4e
commit 5d304e3d1f

View file

@ -2,7 +2,6 @@ defmodule Parser.Types.Position do
@moduledoc """ @moduledoc """
Positition Decoder Positition Decoder
""" """
alias __MODULE__
require Logger require Logger
defstruct lat_degrees: 0, defstruct lat_degrees: 0,
@ -42,7 +41,7 @@ defmodule Parser.Types.Position do
# |> IO. # |> IO.
try do try do
lat = lat =
Geocalc.DMS.to_decimal(%Geocalc.DMS{ Geocalc.DMS.to_degrees(%Geocalc.DMS{
hours: String.to_integer(lat_deg), hours: String.to_integer(lat_deg),
minutes: String.to_integer(lat_min), minutes: String.to_integer(lat_min),
seconds: convert_fractional(lat_fractional), seconds: convert_fractional(lat_fractional),
@ -50,7 +49,7 @@ defmodule Parser.Types.Position do
}) })
long = long =
Geocalc.DMS.to_decimal(%Geocalc.DMS{ Geocalc.DMS.to_degrees(%Geocalc.DMS{
hours: String.to_integer(lon_deg), hours: String.to_integer(lon_deg),
minutes: String.to_integer(lon_min), minutes: String.to_integer(lon_min),
seconds: convert_fractional(lon_fractional), seconds: convert_fractional(lon_fractional),