Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rosemary - OpenStreetMap for Ruby

Rosemary - OpenStreetMap for Ruby

Presentation at the wherecamp in Berlin, June 22 2012

Avatar for Christoph Bünte

Christoph Bünte

July 04, 2012
Tweet

Other Decks in Programming

Transcript

  1. Christoph Bünte • Member of Sozialhelden e.V. • Developer of

    wheelmap.org • Freelancing software developer
  2. wheelmap.org • Ruby on Rails map application based on OSM

    data • minutely synced and stripped OSM copy • gathers POI data • writes back to OSM via API • code was baked into the wheelmap
  3. Rosemary • API wrapper for ruby programming language • Read

    + write support • BasicAuth + OAuth support • Open source
  4. Rosemary client = Rosemary::BasicAuthClient.new('osm_user_name', 'password') api = Rosemary::Api.new(client) changeset =

    api.create_changeset("Some meaningful comment") node = Rosemary::Node.new(:lat => 52.54437, :lon => 13.3527, :name => 'Beuth University', :amenity => 'university') api.save(node, changeset) api.close_changeset(changeset)