Can you guess where in the world you are?
A quick geography quiz: five rounds, each showing a real street-view or satellite image of a city somewhere in the world. Pick the right city from four choices before time runs out on your streak.
- Follow the setup step below to add your Google Maps API key.
- Open
index.htmlin a browser — no build step, no server required. - Hit Let's Play!
- Five questions, four choices each. Click an answer, or use the keyboard.
| Key | Action |
|---|---|
1–4 |
Pick an answer |
Tab |
Cycle through options |
→ / Enter |
Advance to the next question |
Esc |
Clear focus |
This game pulls real street-view and satellite imagery from the Google Maps Platform, so it needs an API key.
- In Google Cloud Console, enable the Street View Static API and Maps Static API for a project, and create an API key.
- Restrict the key (HTTP referrers) to the domain(s) you'll host this on, and set a quota/budget alert — the key is used client-side, so restricting it is what keeps it safe to use in a page anyone can view.
- Copy
config.example.jstoconfig.jsand paste your key in:cp config.example.js config.js
- Open
index.html.
config.js is gitignored — your key never gets committed.
Plain HTML, CSS, and JavaScript — no frameworks, no dependencies, no build tools. Sound effects are synthesized live with the Web Audio API.
git clone git@github.com:jeperry/GeoGuesser.git
cd GeoGuesser
cp config.example.js config.js # add your API key
open index.html