Commit Graph
3 Commits
Author SHA1 Message Date
CatoandClaude 8b716ce8a9 feat(places): add Liechtenstein as a country pack (#277)
Liechtenstein becomes a pack beside Switzerland, so /api/v1/places resolves
Vaduz and the other communes by name and postcode.

- countries/liechtenstein.ts: nation (Fürstentum), the two Landschaften
  Oberland and Unterland as a full level (Constitution Art. 1; the electoral
  districts of Art. 46), the eleven communes; CHF, region LI, postcodes 94[89]x.
  No tax model.
- Identifier schemes li_landschaft and li_municipality (7001-7011, the numbers
  swisstopo's directory of localities gives the communes), both reserved.
- Source li-constitution-communes: a hand-kept batch
  (data/places/liechtenstein/communes.json, fixture adapter) citing the
  Constitution, Art. 1, with names and numbers checked against swisstopo's
  directory.
- Source swisstopo-postcode-localities-li: the Liechtenstein rows of the same
  directory the Swiss postcodes come from; csv_postcodes gains a `where`
  option (as shapefile_areas has) to read only them.
- Tests: the batch passes the check and puts each commune in the Landschaft the
  Constitution names; the postcode source keeps only the 20 Liechtenstein rows;
  an integration test imports both, reruns with no change, and finds Vaduz by
  name and postcode. The Swiss typo test now draws its cases from Swiss places.


Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-22 09:46:27 +02:00
CatoandCursor 9029982639 fix(places): Vaud's 30 % limit on cantonal and communal income tax (#245)
* fix(places): Vaud's 30 % limit on cantonal and communal income tax

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: changelog PR number

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore: drop a scratch script; ignore /tmp

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 02:43:52 -07:00
CatoandCursor a0c582f7a8 feat(places): rounding as the calculator does; Vaud, Schaffhausen, Nidwalden and Glarus (#243)
* feat(places): rounding as the calculator does; Vaud, Schaffhausen, Nidwalden and Glarus

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: changelog PR number

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 01:06:29 -07:00