Skip to content

Commit 30ba2e6

Browse files
authored
docs: improve README and add OpenStreetMap license info (#3)
1 parent 9d5fae3 commit 30ba2e6

7 files changed

Lines changed: 565 additions & 23 deletions

File tree

File renamed without changes.

DATA_LICENSE

Lines changed: 538 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
11
# AddressData.net
22

3-
<img src="docs/logo.svg" alt="Description" width="105">
3+
<img src="docs/logo.svg" alt="AddressData.net logo" width="105">
44

5-
[![deployment](https://github.com/ashtonav/addressdata.net/actions/workflows/addressdata-app-AutoDeployTrigger-97565f4e-b488-43b4-bd79-af6dc76a766b.yml/badge.svg)](https://github.com/ashtonav/addressdata-frontend/actions/workflows/addressdata-app-AutoDeployTrigger-97565f4e-b488-43b4-bd79-af6dc76a766b.yml)
6-
[![license](https://img.shields.io/github/license/ashtonav/addressdata.net.svg)](LICENSE)
5+
[![deployment](https://github.com/ashtonav/addressdata.net/actions/workflows/addressdata-app-AutoDeployTrigger-97565f4e-b488-43b4-bd79-af6dc76a766b.yml/badge.svg)](https://github.com/ashtonav/addressdata.net/actions/workflows/addressdata-app-AutoDeployTrigger-97565f4e-b488-43b4-bd79-af6dc76a766b.yml)
6+
[![license](https://img.shields.io/github/license/ashtonav/addressdata.net.svg)](CODE_LICENSE)
77

8-
This code is used to power [AddressData.net](https://AddressData.net), a site that displays all known addresses by city, alongside an interactive map.
8+
This repository contains the source code for [AddressData.net](https://addressdata.net) — a website that displays street addresses by city alongside an interactive map.
99

10-
Currently, [AddressData.net](https://AddressData.net) contains millions of addresses for over 1,500 cities around the world.
10+
- **Self-hosting:** run your own instance; see [Installation](#installation). A self-hosted instance is **functionally identical** to the public site.
11+
- **Coverage:** millions of addresses across 1,500+ cities worldwide.
12+
- **Baked Data:** no external databases or services are required. A read-only SQLite database containing all addresses is bundled inside the Docker image. See: [the “Baked Data” architectural pattern](https://simonwillison.net/2021/Jul/28/baked-data/).
1113

12-
## Installation
14+
## Screenshots
1315

14-
### How to run
15-
1. From the root folder of the project, run the following commands:
16+
![Screenshot 1](docs/screenshot-1.png)
1617

17-
2. ```bash
18-
docker build -t addressdatanet ./src
19-
docker run -it -p 8001:8001 addressdatanet
20-
```
21-
2. The API can be accessed at [http://localhost:8001](http://localhost:8001).
18+
![Screenshot 2](docs/screenshot-2.png)
2219

23-
FYI: The build script is a bit slow. It may take 20 minutes or more for docker build to be completed.
20+
## Installation
2421

25-
## Acknowledgments
22+
### Using Docker (recommended for self-hosting)
23+
1. From the repository root, build and run the container:
24+
```bash
25+
docker build -t addressdatanet ./src
26+
docker run -it -p 8001:8001 addressdatanet
27+
```
2628

27-
- **Datasette**:
28-
[Datasette](https://docs.datasette.io/en/stable/) is used to display CSV data on a website. It offers a lightweight, flexible way to query and visualize structured data, making it easier to explore and share the address information we collect.
29+
2. The website can be accessed at [http://localhost:8001](http://localhost:8001).
2930

30-
- **OpenStreetMap**
31-
This repository includes data extracted from OpenStreetMap (via Overpass API). **Contains information from OpenStreetMap, © OpenStreetMap contributors.** Data is available under the **Open Database License (ODbL) 1.0**.
31+
> **Note:** The Docker build can take 20 minutes or more to complete.
3232

33-
- **Datasette Charcoal Theme** by https://github.com/julien040/charcoal-datasette-theme.
33+
## Acknowledgments
3434

35+
* **[Datasette](https://datasette.io/):**
36+
* **[Datasette Charcoal Theme](https://github.com/julien040/charcoal-datasette-theme)**
3537

3638
## Contributing
3739

3840
Pull requests are accepted.
3941

4042
## License
4143

42-
- The code itself is licensed under [MIT](https://choosealicense.com/licenses/mit/).
43-
- The street addresses were retrieved using github.com/ashtonav/addressdata and are licensed/available under **Open Database License (ODbL) 1.0**.
44+
* **Code:** [MIT](https://choosealicense.com/licenses/mit/).
45+
* **Data:** Street-address data retrieved using the [AddressData tool](https://github.com/ashtonav/addressdata) includes information from OpenStreetMap. © OpenStreetMap contributors. The data is available under the Open Database License (ODbL) v1.0.

docs/screenshot-1.png

218 KB
Loading

docs/screenshot-2.png

262 KB
Loading

src/metadata.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ extra_css_urls:
1919
extra_js_urls:
2020
- "/static/replace.js"
2121
- "/static/add-custom-favicon.js"
22+
license: "© OpenStreetMap contributors — ODbL 1.0"
23+
license_url: "https://opendatacommons.org/licenses/odbl/1-0/"

src/run-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
echo "Scanning for .db files under 'databases'..."
55

6-
# Find all .db files under ./databases/ and sort them caseinsensitively
6+
# Find all .db files under ./databases/ and sort them case-insensitively
77
mapfile -t DB_PATHS < <(
88
find databases -type f -name '*.db' \
99
| sort -f # -f = ignore case

0 commit comments

Comments
 (0)