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-server
Advanced tools
serve open street map 0.6 api endpoints over a local p2p http server
This package is available as a library you can use from node.js (or if you are creative, also the browser) or as a standalone command.
var osmdb = require('osm-p2p')
var osm = osmdb('/tmp/osm-p2p')
var osmrouter = require('osm-p2p-server')
var router = osmrouter(osm)
var http = require('http')
var server = http.createServer(function (req, res) {
if (router.handle(req, res)) {}
else {
res.statusCode = 404
res.end('not found\n')
}
})
server.listen(5000)
usage: osm-p2p-server {OPTIONS}
-h --help Show this message
-p --port Listen on a port. Default: 5000
-d --datadir Store data in this directory. Default: ./osm-p2p.db
var osmrouter = require('osm-p2p-server')
Create a new open street maps server router
given an
osm-p2p-db handle osm
.
Return a match object m
if method
and url
can be handled by the server.
Match the req.method
and req.url
and dispatch m.fn(m, req, res)
and return
the match object if there is a match.
In changeset uploads (/api/0.6/changeset/:id/upload
), the version
property
refers to a comma-separated list of version hashes of the documents that the
update will replace.
npm install osm-p2p-server
BSD
FAQs
Peer-to-peer OpenStreetMap API v0.6 Server
The npm package osm-p2p-server receives a total of 62 weekly downloads. As such, osm-p2p-server popularity was classified as not popular.
We found that osm-p2p-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.