LibLatLon.Coords.coordinate

You're seeing just the function coordinate, go back to LibLatLon.Coords module for more information.

Specs

coordinate(nil | binary() | %{} | any()) :: {:ok, t()} | {:error, any()}

Retrieves coordinates from barely anything.

iex> {:ok, result} = LibLatLon.Coords.coordinate("test/inputs/1.jpg")
...> result
#Coord<[lat: 41.37600333333334, lon: 2.1486783333333332, fancy: "41°22´33.612˝N,2°8´55.242˝E"]>

iex> LibLatLon.Coords.coordinate("test/inputs/unknown.jpg")
{:error, {:weird_input, [nil]}}