Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month ago
JSON representation
Ruby objects for dealing with OSM data, and generating XML files
- Host: GitHub
- URL: https://github.com/brunosalerno/osm_data
- Owner: BrunoSalerno
- License: mit
- Created: 2019-08-21T09:06:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T23:09:59.000Z (over 1 year ago)
- Last Synced: 2024-06-13T21:02:57.698Z (7 months ago)
- Topics: data, openstreetmap, ruby, xml
- Language: Ruby
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 << relationcollection.to_xml
```Output:
```xml
```