Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brunosalerno/osm_data

Ruby objects for dealing with OSM data, and generating XML files
https://github.com/brunosalerno/osm_data

data openstreetmap ruby xml

Last synced: 1 day ago
JSON representation

Ruby objects for dealing with OSM data, and generating XML files

Awesome Lists containing this project

README

        

# osm_data
Ruby objects for dealing with OSM data, and generating XML files

## Example
```ruby
node = OSMData::Node.new(id: -12, lat: 23, lon: 32)
way = OSMData::Way.new(id: -109, members: [node], tags: {route: 'bus', type: 'route'})
relation = OSMData::Relation.new(id: -23, members: [way], tags: {name: 'Bus 55'})

collection = OSMData::ElementCollection.new
collection << relation

collection.to_xml
```

Output:
```xml










```