GPX is a parser for the GPS Exchange Format.
Use Gpx.parse to return a List of Gpx.Points.
{:ok, content} = File.read("/path/to/file.gpx")
points = Gpx.parse(content)
=> [%Gpx.Point{ele: 4.46, lat: 47.644548, lon: -122.326897, time: ~N[2016-10-31 22:30:27]}
...]- Add
gpxto your list of dependencies inmix.exs:
```elixir
def deps do
[{:gpx, "~> 0.1.0"}]
end
```
- Ensure
gpxis started before your application:
```elixir
def application do
[applications: [:gpx]]
end
```