From 5d304e3d1f53e733f2bb0bdb211f7eb7769f75c5 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 30 Jan 2023 14:05:40 -0600 Subject: [PATCH] clean up some warnings --- lib/types/position.ex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/types/position.ex b/lib/types/position.ex index a05d3aa..6bef56e 100644 --- a/lib/types/position.ex +++ b/lib/types/position.ex @@ -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),