clean up some warnings
This commit is contained in:
parent
9056331c4e
commit
5d304e3d1f
1 changed files with 2 additions and 3 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue