osm-poi-db
Version:
Extract POIs from OSM PBFs and put them into LevelDB, ready for nearby query
27 lines (20 loc) • 562 B
Markdown
Not sure if this is a common method for geospatial databases or not,
this stores nodes and keys by their average coordinate encoded as
GeoHash for query by location.
I recommend pipeview for monitoring progress:
```
pv -per < region-latest.osm.pbf | node osm2leveldb.js
```
By latitude/longitude + maximum extend:
```js
var AreaStream = require('../area_stream');
new AreaStream({
lat: 51,
lon: 13,
extent: 5000
}).pipe(myConsumer);
```