This project helps people to learn the geography of their city (or any other city). Right now, it just displays a city map, adjusted for the curvature of the Earth.
It is built with React. I run the website on my Raspberry Pi, which I will connect to my domain name at some point.
# Install dependencies
npm i
# Run locally for development:
npm run dev
# Build for production:
npm run build
# Run locally for production:
npm run pi
Since Vite is not intended to be used for locally hosted apps, they only provide the preview
command for running a production build locally. This is good enough for my purposes so I use that with the --host option to expose the port to outside connections (Inside the npm run pi
script).
- do CSS to it
- connect the website to my domain name quinnlas.com
- implement a game where roads/other features are drawn and the user can guess what they are
- various code TODO comments
The APIs related to OSM are very unintuitive. I have found it useful to go to the main site, right click, select Query features
and then explore the relationships between the different data types that come up. From there, attempt to put something that works into the wizard at Overpass Turbo. The visualization should tell you if you got the right thing, but the Data
tab is also useful. The query that Overpass Turbo gives you can be sent to the Overpass API.
Following is the README for the React + Vite template:
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh