Module: OpenStreetMap

Defined in:
lib/openstreetmap.rb,
lib/open_street_map/api.rb,
lib/open_street_map/way.rb,
lib/open_street_map/node.rb,
lib/open_street_map/tags.rb,
lib/open_street_map/user.rb,
lib/open_street_map/errors.rb,
lib/open_street_map/member.rb,
lib/open_street_map/element.rb,
lib/open_street_map/relation.rb,
lib/open_street_map/changeset.rb,
lib/open_street_map/oauth_client.rb,
lib/open_street_map/basic_auth_client.rb

Overview

The OpenStreetMap class handles all calls to the OpenStreetMap API.

Usage:

require 'osm'
auth_client = OpenStreetMap::BasicAuthClient.new(:user_name => 'user', :password => 'a_password')
osm = OpenStreetMap.new(auth_client)
@node = osm.find_node(1234)
@node.tags << {:wheelchair => 'no'}
osm.save(@node)

Defined Under Namespace

Classes: Api, BadRequest, BasicAuthClient, Changeset, ChangesetMissing, Conflict, CredentialsMissing, Element, Error, Gone, Member, MethodNotAllowed, Node, NotFound, NotImplemented, OauthClient, Parser, Precondition, Relation, ServerError, Tags, Unauthorized, Unavailable, User, Way