This project shows Automated External Defibrillators (AED) locations on a map. The site integrates with OpenStreetMap. It reads AED data from OSM. You can also add a new AED location to OSM.
This is a rewrite of the first version to React. Development is in progress.
Production environment: https://openaedmap.org
Development environment: https://dev.openaedmap.org
We recommend bun instead of npm. See https://bun.sh/docs/installation for the installation guide.
dev is the main branch. When you push to dev, the dev environment deploys automatically.
Create a branch from dev. When you finish, make a PR back to dev.
To deploy to production, create a git tag. Use the YYYY-MM-DD format. You can add a suffix with a description.
We use Weblate to manage translations.
If you want to help, go to https://hosted.weblate.org/projects/openaedmap/ and start translating :)
If you add a new language, create an issue or make a PR. Add it to src/languages.ts with the 2 letter ISO 639-1 code and the native name. The native name shows in the dropdown.
A language with multiple variants needs an extra suffix. For example, use zh-Hant for Traditional Chinese.
Status:
One way to set up the project:
- Clone the repo and open a terminal in the project directory
- Install Node version 24 or use Node version manager
- Install bun. See https://bun.sh/docs/installation
- Run
bun install
The second way: if you use VS Code and have Docker installed, you can use the devContainer extension.
The repo ships a dev.env template with sensible defaults for local
development. Symlink it to .env. .env stays gitignored, so your local
overrides and any secrets are never committed:
ln -s dev.env .env
If you need custom values, copy it instead (cp dev.env .env) and edit .env.
Note: You can use Github Codespaces to develop.
We recommend lefthook.
After you install lefthook, run lefthook install to configure it.
The formatter and linter run before each git commit.
In the project directory, you can run:
Runs the app in development mode.
Open http://127.0.0.1:5173 to view it in your browser.
The page reloads when you make changes.
You can also see lint errors in the console.
Builds the app for production in the build folder.
Use npx @beyondtracks/spritezero-cli ./public/img/sprite ./src/marker_icons; spritezero --ratio=2 ./public/img/sprite@2x ./src/marker_icons; spritezero --ratio=4 ./public/img/sprite@4x ./src/marker_icons
We recommend bun update --interactive.
The map and AED locations are from OpenStreetMap