csbrandt / osm-build-query

Build a query for the OSM Overpass API that retrieves all elements within the bounding feature

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM

Build a query for the OSM Overpass API that retrieves all elements within the bounding feature

Installation

$ npm install osm-build-query

Function

OSMBuildQuery(key, bounds)

key: string, Tag name

bounds: object, GeoJSON bounding feature

Returns

object, with data property that contains the query string

Running Tests

Install the development dependencies:

$ npm install

Then run the tests:

$ npm test

Code Coverage

Install the development dependencies:

$ npm install

Then run coverage

$ npm run coverage

View coverage reports

$ firefox coverage/lcov-report/index.html

Browser Bundle

$ npm run build

About

Build a query for the OSM Overpass API that retrieves all elements within the bounding feature


Languages

Language:HTML 41.2%Language:JavaScript 38.7%Language:CSS 16.4%Language:CoffeeScript 2.9%Language:Makefile 0.9%