How guifabri/placetovisitguide works
Places to Visit Guide is a browser app for finding nearby tourist attractions by searched location or current location, then browsing results as cards and map markers. Its main controller coordinates geocoding, streamed Wikipedia searches, filtering, details, and favorites. The map uses Leaflet with Esri tiles; the interface also offers detail links and directions. Source excerpts show the main runtime calls and API integrations. README documents Leaflet/Esri wiring; no separate source excerpt for HTML wiring was provided.
Main entry points: main.mjs App controller · map.mjs Map and markers · ui.mjs Detail modal · api.mjs City geocoding
Components 15
Search orchestration
- App controller
scripts/main.mjs
Place discovery
- City geocoding
scripts/api.mjs - Nearby search
scripts/api.mjs - Place details
scripts/api.mjs
Results and map
- Cards and filters
scripts/ui.mjs - Detail modal
scripts/ui.mjs - Map and markers
scripts/map.mjs
Saved places
- Favorites storage
scripts/storage.mjs
Other components
- Visitor
- Browser geolocation
- Geoapify
- Wikipedia API
- Leaflet
- Esri map tiles
- Google Maps directions
Connections 17
- Visitor → App controller: uses
README.md - App controller → Browser geolocation: requests location
scripts/main.mjs - App controller → City geocoding: geocodes search
scripts/main.mjs - City geocoding → Geoapify: requests coordinates
scripts/api.mjs - App controller → Nearby search: streams nearby places
scripts/main.mjs - Nearby search → Wikipedia API: searches geosearch
scripts/api.mjs - App controller → Place details: loads details
scripts/main.mjs - Place details → Wikipedia API: requests page data
scripts/api.mjs - App controller → Cards and filters: renders results
scripts/main.mjs - App controller → Detail modal: renders details
scripts/main.mjs - App controller → Map and markers: updates map
scripts/main.mjs - Map and markers → Leaflet: creates map and markers
README.md - Map and markers → Esri map tiles: loads map tiles
scripts/map.mjs - App controller → Favorites storage: reads and toggles
scripts/main.mjs - Detail modal → Google Maps directions: links directions
scripts/ui.mjs - Visitor → Cards and filters: selects filters
scripts/ui.mjs - Visitor → Detail modal: opens or saves
scripts/ui.mjs