Skip to content

Support city areas#7

Open
barfeldman wants to merge 2 commits intomainfrom
support-city-areas
Open

Support city areas#7
barfeldman wants to merge 2 commits intomainfrom
support-city-areas

Conversation

@barfeldman
Copy link
Collaborator

No description provided.

bar.f and others added 2 commits March 8, 2026 21:35
Replaces the plain textarea with a dual-mode input:
- "בחר מרשימה" tab: searchable list of 168 Israeli cities/sub-areas
  organised by 9 regions (גוש דן, שרון, מרכז, ירושלים, חיפה וקריות,
  צפון, דרום, עוטף עזה, ים המלח/נגב/ערבה). Includes sub-areas for
  major cities (e.g. נתניה מזרח/מערב/צפון/דרום, באר שבע מזרח/מערב,
  אשקלון צפון/דרום, חיפה by neighbourhood). Selected items shown as
  removable tag chips.
- "טקסט חופשי" tab: raw textarea for custom area names not in the list.

On save both tabs are merged and de-duplicated into config.areas.
On load, known areas are pre-checked in the picker; unrecognised ones
appear in the free-text tab. No backend changes required.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
cities.js is now generated from the official Pikud HaOref cities.json
(via eladnava/pikud-haoref-api), giving 1,449 real area names across
33 official warning zones.

Key corrections:
- נתניה has exactly 2 real zones: נתניה - מזרח / נתניה - מערב
  (previous list had 8 invented names that don't exist in the system)
- תל אביב has 4 real zones (מרכז, מזרח, דרום, עבר הירקון)
- חיפה has 5 real zones
- ירושלים has 7 real zones
- All other cities now use exact Pikud HaOref naming

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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