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