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 """
|
@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),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue