dougfales/gpx

View on GitHub
bin/gpx_distance

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby

# frozen_string_literal: true

require File.expand_path('../lib/gpx', __dir__)

filename = ARGV[0]
gpx = GPX::GPXFile.new(gpx_file: filename)
puts "read track with distance #{gpx.distance}"