overpass.js
v1.0.0
Published
overpass.js is a [Node.js](https://nodejs.org) module that allows you to easily interact with the [Overpass API](https://wiki.openstreetmap.org/wiki/Overpass_API).
Downloads
9
Readme
overpass.js
overpass.js is a Node.js module that allows you to easily interact with the Overpass API.
example code
an overpass query like this:
[out:json][timeout:30];
(
node[amenity=parking](47.48047027491862,19.039797484874725,47.51331674014172,19.07404761761427);
);
out body;
>;
out skel qt;..can be expressed like:
const query = new OverpassQuery()
.setFormat('json')
.setTimeout(30)
.addElement({
type: 'node',
tags: [{ amenity: 'parking' }],
bbox: [47.48047027491862, 19.039797484874725, 47.51331674014172, 19.07404761761427]
});
