This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] drawing routes, ruby gem

-1

Hello.

I've created ruby gem for drawing routes on OpenStreetMap maps. Hope it would be useful. https://github.com/akwiatkowski/gpx2exif

How to use: - Cli:

gpx2png -g spec/fixtures/sample.gpx    -s 800x600 -o map.png # image size
gpx2png -g spec/fixtures/sample.gpx    -z 11 -o map.png # zoom
  • Ruby code:
g = GpxUtils::TrackImporter.new
g.add_file('sample.gpx')
e = Gpx2png::Osm.new
e.coords = g.coords
e.zoom = 8
e.save('output.png')

more https://github.com/akwiatkowski/gpx2exif/blob/master/spec/gpx2png/osm_spec.rb

This question is marked "community wiki".

asked 23 Jul '12, 12:36

bobik314's gravatar image

bobik314
11113
accept rate: 0%

closed 24 Jul '12, 17:31

scai's gravatar image

scai ♦
33.3k21309459

What about publishing your code even in the OSM wiki, the OSM forum or to one or more of the OSM mailing lists?

Because this is "only" an FAQ site ...

(24 Jul '12, 16:26) stephan75

The question has been closed for the following reason “Not a question. Please use the mailing list, forum, wiki or irc to announce your tool.” by scai 24 Jul ‘12, 17:31

Source code available on GitHub .