idris-overpass

1.1.0 • Public • Published

idris-overpass

Query the overpass API. Returns a GeoJSON collection.

WORKS ONLY IN NODE as it uses request to fetch the data. For use in the browser, see idris-overpass-browser

Usage

io(config, callback)

var io = require('idris-overpass')

var config = {
    bbox: [7.590,47.560,7.595,47.563],
    kv: [{key: 'highway', value: '*'}]
}

io(config, function(geojson) {
    console.log(geojson)
})

config

  • bbox (required) [minX, minY, maxX, maxY]
  • kv (required) an array of objects {key: ... , value: ... }
  • timeout (optional)

Readme

Keywords

Package Sidebar

Install

npm i idris-overpass

Weekly Downloads

0

Version

1.1.0

License

GPL-2.0

Last publish

Collaborators

  • idris-maps