Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

osm-p2p-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osm-p2p-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

1

api/get_map.js

@@ -18,2 +18,3 @@ var collect = require('collect-stream')

opts.forks = opts.forks || false
opts.order = 'type'

@@ -20,0 +21,0 @@ var query = [[bbox[1], bbox[3]], [bbox[0], bbox[2]]] // left,bottom,right,top

2

package.json

@@ -5,3 +5,3 @@ {

"author": "Stephen Whitmore <sww@eight.net>",
"version": "1.0.1",
"version": "1.0.2",
"repository": {

@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/osm-p2p-api.git"

@@ -24,6 +24,19 @@ # osm-p2p-api

var osmApi = require('osm-p2p-api')
var osmP2p = require('osm-p2p-mem')
var osm = osmP2p()
var api = osmApi(osm)
api.getMap(...)
var node = {
type: 'node',
lat: 14,
lon: -1
}
osm.create(node, function () {
var bbox = [-180, -85, 180, 85]
var stream = api.getMap(bbox, function (err, res) {
console.log(res)
})
})
```

@@ -34,3 +47,7 @@

```
???
[ { type: 'node',
lat: 14,
lon: -1,
id: '14932367278207151409',
version: '6b8042a175ba486961d3d11277c6a6e9c0f882da3036dcd1e68e96e3acc45a95' } ]
```

@@ -53,3 +70,3 @@

```js
var bbox = [ [ minLatitude, maxLatitude ], [ minLongitude, maxLongitude ] ]
var bbox = [minLon, minLat, maxLon, maxLat]
```

@@ -56,0 +73,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc