gpx.cr

GPX (the GPS Exchange Format) parser for Crystal

gpx Build Status crystal-docs.org

GPX (the GPS Exchange Format) parser for Crystal

Installation

Add this to your application's shard.yml:

dependencies:
  gpx:
    github: scaint/gpx.cr

Usage

require "gpx"

gpx = GPX.from_file("example.gpx")

track = gpx.tracks[0]
puts track.name

start_point = track.segments[0].points[0]
puts start_point.lat
puts start_point.lon
puts start_point.ele
puts start_point.time

TODO

  • Bounds
  • Haversine distance
  • Track optimization
Repository

gpx.cr

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • over 7 years ago
  • June 30, 2016
License

MIT License

Links
Synced at

Fri, 17 May 2024 17:07:10 GMT

Languages