Skip to content

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

Notifications You must be signed in to change notification settings

csbrandt/osm-build-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published