# osm-poi-db

> Extract POIs from OSM PBFs and put them into LevelDB, ready for nearby query

Latest version **0.0.2** (published 2014-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install osm-poi-db
pnpm add osm-poi-db
yarn add osm-poi-db
bun add osm-poi-db
```

Provides the command `osm2leveldb`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-07-26 |
| First published | 2014-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Astro |
| Maintainers | astro |
| Keywords | osm, openstreetmap, levledb, geodb, spatial, geolocation, poi |

## Links

- npm: https://www.npmjs.com/package/osm-poi-db
- Homepage: https://github.com/astro/osm-poi-db
- Issues: https://github.com/astro/osm-poi-db/issues
- npm.io page: https://npm.io/package/osm-poi-db

## Dependencies (6)

- [async](https://npm.io/package/async.md) ~0.9.0
- [geohash](https://npm.io/package/geohash.md) ~0.0.1
- [levelup](https://npm.io/package/levelup.md) ~0.18.3
- [leveldown](https://npm.io/package/leveldown.md) ~0.10.2
- [wgs84-util](https://npm.io/package/wgs84-util.md) ~1.0.0
- [osm-pbf-parser](https://npm.io/package/osm-pbf-parser.md) ~1.2.0

## Recent versions

- 0.0.2 (latest) — 2014-07-26
- 0.0.1 — 2014-07-26

## README

# OpenStreetMap Points of Interest Database

## Synopsis

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.

## Importing an OSM Protocol Buffers Dump

I recommend pipeview for monitoring progress:
```
pv -per < region-latest.osm.pbf | node osm2leveldb.js
```

## Query

By latitude/longitude + maximum extend:
```js
var AreaStream = require('../area_stream');
new AreaStream({
    lat: 51,
    lon: 13,
    extent: 5000
}).pipe(myConsumer);
```

---
_Source: https://npm.io/package/osm-poi-db · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
