Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 812 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 812 Bytes

Gpx

Travis Hex.pm

GPX is a parser for the GPS Exchange Format.

Usage

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]}
   ...]

Installation

  1. Add gpx to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:gpx, "~> 0.1.0"}]
end
```
  1. Ensure gpx is started before your application:
```elixir
def application do
  [applications: [:gpx]]
end
```