Skip to content

refactor: replace Overpass API loader with static venue geometry#228

Open
rileychh wants to merge 1 commit intomainfrom
static-venue-geometry
Open

refactor: replace Overpass API loader with static venue geometry#228
rileychh wants to merge 1 commit intomainfrom
static-venue-geometry

Conversation

@rileychh
Copy link
Copy Markdown
Member

@rileychh rileychh commented May 4, 2026

Summary

  • Captures the post-osmtogeojson FeatureCollections from the existing fixed Overpass queries (NTUST campus relation + the RB and TR building ways) into a new data/venue-geometry.json and rewrites loaders/overpass.data.ts to import it.
  • Drops the runtime fetch to overpass-api.de and the osmtogeojson dependency. The loader's exported OverpassData shape is unchanged, so LeafletMap.vue is untouched.

Why

The OSM IDs we query are fixed, so Overpass returned the same result on every build — but the API is unstable and is currently returning errors, blocking builds. Static data removes the network dependency entirely; refresh instructions for the three OSM objects live in the loader's docstring.

Test plan

  • pnpm type-check passes locally
  • JSON shape verified: 1 MultiPolygon venue feature (國立臺灣科技大學) + 2 Polygon building features with name/ref tags preserved for tooltips (綜合研究大樓 (RB), 研揚大樓 (TR))
  • CI green
  • Visual check of the map on the event page (blocked locally by an unrelated Pretalx CDN error preventing pnpm dev from booting — should be exercised in preview)

The loader queried Overpass on every build for fixed OSM IDs (NTUST relation
plus the RB and TR building ways), so the answer never changed — but the API
is unstable and currently down, breaking builds.

Capture the post-osmtogeojson FeatureCollections once into
data/venue-geometry.json and import it from the loader. The osmtogeojson
dependency, the runtime fetch, and the network failure mode go away. The
loader keeps the same OverpassData shape, so LeafletMap.vue is unchanged.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
2025 Error Error May 4, 2026 3:28pm

@rileychh rileychh marked this pull request as ready for review May 4, 2026 17:15
@rileychh rileychh requested a review from mirumodapon May 4, 2026 17:18
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.

3 participants