underpass

Gem Version Build Status

A library that makes it easy to translate Overpass API responses into RGeo objects.

Installation

Install globally:

gem install underpass

Or put it in your Gemfile:

gem 'underpass'

Usage

# create a bounding box
f = RGeo::Geographic.spherical_factory
bbox = f.parse_wkt('POLYGON ((23.669 47.65, 23.725 47.65, 23.725 47.674, 23.669 47.674, 23.669 47.65))')
# provide the query part
op_query = 'way["heritage:operator"="lmi"]["ref:ro:lmi"="MM-II-m-B-04508"];'
# perform the query and get results
result = Underpass::QL::Query.perform(bbox, op_query)

Contributing

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet;
  • Check out the issue tracker to make sure someone already hasn't requested it and / or contributed it;
  • Fork the project;
  • Start a feature / bugfix branch;
  • Commit and push until you are happy with your contribution;
  • Make sure to add specs for it. This is important so your contribution won't be broken in a future version unintentionally.

License

underpass is released under the MIT License. See the LICENSE file for further details.