osm-p2p-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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 |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7474
152
97