An open API service indexing awesome lists of open source software.

https://github.com/ent8r/notesreview-api

API for searching OpenStreetMap notes
https://github.com/ent8r/notesreview-api

Last synced: 3 days ago
JSON representation

API for searching OpenStreetMap notes

Awesome Lists containing this project

README

        

# notesreview-api
> API and backend for [notesreview](https://github.com/ENT8R/notesreview)

## Scripts

#### `delete.py`
```sh
# Deletes all notes that are not included in the notes dump
python scripts/delete.py notes.osn
```

---

#### `import.py`
```sh
# Imports all notes from the notes dump
python scripts/import.py notes.osn
```

---

#### `indices.py`
```sh
# Creates all necessary indices for the database
python scripts/indices.py
```
---

#### `update.py`
```sh
# Updates the database by querying the OSM Notes API
# in order to receive the latest notes
# since a given date of the last check
python scripts/update.py
```

## Notes Dump

##### Download
```sh
# Download and extract the notes dump
# (hosted on https://planet.openstreetmap.org/ or any other mirror)

# ${URL} needs to be replaced with the location of the notes dump
curl -o notes.osn.bz2 ${URL} && bzip2 -d notes.osn.bz2
```

##### XML Structure
The structure of the notes dump follows this scheme:
```xml


${comment|optional}

```