1.0.0 • Published 2 years ago
overpass.js v1.0.0
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]
});
1.0.0
2 years ago