Skip to content

add populate-locality-geojson script and 24 Sofia district boundaries#299

Merged
vbuch merged 1 commit intomainfrom
localities-files
Mar 21, 2026
Merged

add populate-locality-geojson script and 24 Sofia district boundaries#299
vbuch merged 1 commit intomainfrom
localities-files

Conversation

@vbuch
Copy link
Owner

@vbuch vbuch commented Mar 21, 2026

  • Fetch district boundaries from Sofia Urban Data API (sofiaplan.bg)
  • Save each district as individual GeoJSON FeatureCollection
  • Extract transliterate utility to ingest/lib/transliterate.ts
  • Use official Bulgarian Streamlined System 2009 transliteration
  • Add commander.js CLI pattern matching other ingest scripts
  • Add Vitest tests for transliterate function

Closes #281

…ndaries\n\n- Fetch district boundaries from Sofia Urban Data API (sofiaplan.bg)\n- Save each district as individual GeoJSON FeatureCollection\n- Extract transliterate utility to ingest/lib/transliterate.ts\n- Use official Bulgarian Streamlined System 2009 transliteration\n- Add commander.js CLI pattern matching other ingest scripts\n- Add Vitest tests for transliterate function\n\nCloses #281"
@vbuch vbuch requested a review from Copilot March 21, 2026 16:56
@vercel
Copy link

vercel bot commented Mar 21, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
oborishte-map Skipped Skipped Mar 21, 2026 4:56pm

@vbuch vbuch changed the title feat: add populate-locality-geojson script with 24 Sofia district boundaries add populate-locality-geojson script and 24 Sofia district boundaries Mar 21, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Sofia district boundary GeoJSON files and introduces a Bulgarian (Streamlined System 2009) transliteration utility with Vitest coverage, to support consistent ingest naming/lookup.

Changes:

  • Added multiple Sofia district boundary GeoJSON FeatureCollections under ingest/localities/.
  • Added transliterate() utility implementing Bulgarian Streamlined System (2009).
  • Added Vitest tests verifying transliteration behavior for common district names and casing.

Reviewed changes

Copilot reviewed 13 out of 27 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ingest/localities/bg.sofia.vazrazhdane.geojson Adds Vazrazhdane district boundary and metadata
ingest/localities/bg.sofia.sredets.geojson Adds Sredets district boundary and metadata
ingest/localities/bg.sofia.slatina.geojson Adds Slatina district boundary and metadata
ingest/localities/bg.sofia.oborishte.geojson Adds Oborishte district boundary and metadata
ingest/localities/bg.sofia.krasno-selo.geojson Adds Krasno Selo district boundary and metadata
ingest/localities/bg.sofia.izgrev.geojson Adds Izgrev district boundary and metadata
ingest/localities/bg.sofia.ilinden.geojson Adds Ilinden district boundary and metadata
ingest/lib/transliterate.ts Implements Bulgarian Cyrillic → Latin transliteration
ingest/lib/transliterate.test.ts Adds Vitest coverage for transliteration rules

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vbuch vbuch merged commit 218a406 into main Mar 21, 2026
6 checks passed
@vbuch vbuch deleted the localities-files branch March 21, 2026 17:29
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.

Support localityWide: populate localities static json files

2 participants