Skip to content

feat: add interactive map and GeoJSON for GitHub Pages#23

Open
KristjanESPERANTO wants to merge 2 commits into
highsource:masterfrom
KristjanESPERANTO:pages
Open

feat: add interactive map and GeoJSON for GitHub Pages#23
KristjanESPERANTO wants to merge 2 commits into
highsource:masterfrom
KristjanESPERANTO:pages

Conversation

@KristjanESPERANTO
Copy link
Copy Markdown
Contributor

@KristjanESPERANTO KristjanESPERANTO commented Dec 11, 2025

Since I enjoy working with Leaflet for interactive maps, and having the map available directly in the browser is convenient, I built this.

Changes

  • generate docs/verbundkarte.geojson
  • new docs/index.html with a Leaflet map (search, filters, legend, URL hash, date display from GeoJSON metadata)
  • merge.py writes both out/authorities_enhanced.geojson and docs/verbundkarte.geojson for GitHub Pages

Preview

Enable GitHub Pages

  1. GitHub → Settings → Pages
  2. Source: select branch master and folder docs/
  3. Save; after deployment the map is available at https://highsource.github.io/verbundkarte/

Additonal: deduplicate features

I noticed duplicate features in the GeoJSON when a transit district had multiple websites (e.g., separate English/German URLs), so I added deduplication to keep each authority single.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant