Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
osm-p2p-api
Advanced tools
Functions for implementing the OSM API using osm-p2p-db.
This module sits between osm-p2p-db
and osm-p2p-server
. It provides
the logic that turns the data from an osm-p2p-db
into what the
osm-p2p-server
needs in order to satisfy the OSM
API.
We (Digital Democracy) are also using it for things like GeoJSON exports in Mapeo.
Work in Progress. API functions from osm-p2p-server
will be moved over
here incrementally as they are needed. Semver will be respected throughout the
move.
var osmApi = require('osm-p2p-api')
var api = osmApi(osm)
api.getMap(...)
outputs
???
var osmApi = require('osm-p2p-api')
Constructs a new API object over the osm-p2p-db
instance osm
.
Get all OSM documents in the bounding box bbox
, which is of the form
var bbox = [ [ minLatitude, maxLatitude ], [ minLongitude, maxLongitude ] ]
opts
, if provided, accepts the following properties:
opts.forks
(Boolean): whether to include forks of documents. Defaults to
false
.The callback cb
is also optional. If provided, results will be buffered and
returned via cb
. If no callback is given, the function returns a Readable
stream stream
.
With npm installed, run
$ npm install osm-p2p-api
This module was born from a great idea by @gmaclennan!
ISC
FAQs
Functions for implementing the OSM API using osm-p2p-db.
The npm package osm-p2p-api receives a total of 0 weekly downloads. As such, osm-p2p-api popularity was classified as not popular.
We found that osm-p2p-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.