At this moment you can only import GPX tracks as Array
of points CrystalGpx::Point
.
Add this to your application's shard.yml
:
dependencies:
crystal_gpx:
github: akwiatkowski/crystal_gpx
require "crystal_gpx"
path = File.join(["spec", "fixtures", "sample.gpx"])
g = CrystalGpx.load(path)
puts g.points.inspect
Compile and install:
crystal build bin/cr_geotag.cr --release -o bin/cr_geotag
sudo mv bin/cr_geotag /usr/bin
And run in directory where you store JPEG and GPX files to geotag them.
cr_geotag
TODO: Write development instructions here
- Fork it ( https://github.com/akwiatkowski/crystal_gpx/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- akwiatkowski Aleksander Kwiatkowski - creator, maintainer