@geoalgeria/poste 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,3 +1,5 @@
1
+ ## Code
2
+
1
3
  MIT License
2
4
 
3
5
  Copyright (c) 2025-2026 Yasser's Studio (https://yasser.studio)
@@ -19,3 +21,9 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
21
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
22
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
23
  SOFTWARE.
24
+
25
+ ## Data
26
+
27
+ Data © Algérie Poste; redistributed for reference
28
+
29
+ The underlying data is © Algérie Poste, redistributed for reference and to power GeoAlgeria (https://geoalgeria.com).
package/README.ar.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/@geoalgeria/poste)](https://www.npmjs.com/package/@geoalgeria/poste)
10
10
  [![npm downloads](https://img.shields.io/npm/dm/@geoalgeria/poste)](https://www.npmjs.com/package/@geoalgeria/poste)
11
- [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
11
+ [![Code: MIT](https://img.shields.io/badge/Code-MIT-green.svg)](LICENSE)
12
12
 
13
13
  </div>
14
14
 
@@ -77,9 +77,8 @@ data/
77
77
 
78
78
  > GeoJSON يتضمن فقط السجلات التي تحتوي على إحداثيات – 16 مكتبًا و5 أجهزة صراف
79
79
  > آلي لا تُبلّغ عن `lat`/`lng` وتُحذف منه (لكنها تبقى في JSON/CSV، مع
80
- > `geo_precision`/`geo_method` بقيمة `null`). سجلات أجهزة الصراف الآلي تحمل
81
- > `commune_code` بقيمة `null` (واجهة API المصدر لا تحلّ كود بلدية لأجهزة
82
- > الصراف الآلي).
80
+ > `geo_precision`/`geo_method` بقيمة `null`). يملأ GeoAlgeria حقل
81
+ > `commune_code` لـ90 جهازًا فقط عند تطابق اسم البلدية والولاية الأم وموقع النقطة.
83
82
 
84
83
  ## أشكال السجلات
85
84
 
@@ -115,8 +114,8 @@ GeoAlgeria. عندما ينشر بريد الجزائر قيمة أصلية مخ
115
114
 
116
115
  **جهاز صراف آلي** – نفس الشكل، مُعرّف بـ `id`/`name`/`wilaya_code`/`postal_code`
117
116
  مع `lat`/`lng`، بالإضافة إلى حقل `status` (‏`"OPEN"`، ‏`"CLOSED (OFFLINE)"`، أو
118
- قيمة المصدر غير الموثقة `"1"`)؛ `commune_code` و`address` تكون دائمًا `null`
119
- (المصدر لا يحلّهما لأجهزة الصراف الآلي).
117
+ قيمة المصدر غير الموثقة `"1"`)؛ يُملأ `commune_code` في 90 سجلًا مؤكّدًا ويبقى
118
+ `null` في غيرها، بينما يبقى `address` دائمًا `null`.
120
119
 
121
120
  ## هل تحتاج التقسيمات الإدارية أيضًا؟
122
121
 
@@ -132,8 +131,10 @@ GeoAlgeria. عندما ينشر بريد الجزائر قيمة أصلية مخ
132
131
  (<https://baridimap.poste.dz>). نفّذ `npm run fetch` لإعادة توليد جميع
133
132
  المخرجات من واجهة API المباشرة؛ نفس العملية تعكس البيانات في حزمة `geoalgeria`
134
133
  حتى لا يحدث اختلاف بينهما أبدًا (هذه الحزمة هي المصدر المرجعي). أعد التشغيل
135
- دوريًا – BaridiMap لا يزال يصنف المكاتب وفق نظام 58 ولاية، لذا الولايات
136
- الجديدة 59–69 تظهر حاليًا تحت ولاياتها الأم.
134
+ دوريًا. لا يزال BaridiMap يصنف بعض السجلات وفق نظام 58 ولاية. يربط GeoAlgeria
135
+ المكاتب عبر `commune_code` المرجعي، ويربط 90 جهاز صراف عندما يتطابق اسم البلدية
136
+ الفرنسي أو العربي الدقيق وعلاقة الولاية الأم والمضلع الوحيد الذي يحتوي النقطة. يحتفظ
137
+ `source_wilaya_code` بقيمة المصدر عند اختلافها.
137
138
 
138
139
  ## الترخيص والإسناد
139
140
 
package/README.fr.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/@geoalgeria/poste)](https://www.npmjs.com/package/@geoalgeria/poste)
10
10
  [![npm downloads](https://img.shields.io/npm/dm/@geoalgeria/poste)](https://www.npmjs.com/package/@geoalgeria/poste)
11
- [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
11
+ [![Code: MIT](https://img.shields.io/badge/Code-MIT-green.svg)](LICENSE)
12
12
 
13
13
  </div>
14
14
 
@@ -77,9 +77,9 @@ data/
77
77
 
78
78
  > Le GeoJSON n'inclut que les enregistrements ayant des coordonnées – 16
79
79
  > bureaux et 5 DAB ne rapportent pas de `lat`/`lng` et en sont absents (mais
80
- > restent dans JSON/CSV, avec `geo_precision`/`geo_method` à `null`). Les
81
- > enregistrements de DAB portent `commune_code` à `null` (l'API source ne
82
- > résout pas de code commune pour les DAB).
80
+ > restent dans JSON/CSV, avec `geo_precision`/`geo_method` à `null`). Pour 90
81
+ > DAB, GeoAlgeria renseigne `commune_code` uniquement lorsque le nom de commune,
82
+ > la wilaya mère et le point concordent.
83
83
 
84
84
  ## Structure des enregistrements
85
85
 
@@ -114,8 +114,8 @@ le bureau n'est pas géocodé) ; `geo_method` indique comment le point a été o
114
114
 
115
115
  **DAB** – même structure, identifié par `id`/`name`/`wilaya_code`/`postal_code`
116
116
  avec `lat`/`lng`, plus un champ `status` (`"OPEN"`, `"CLOSED (OFFLINE)"`, ou la
117
- valeur source non documentée `"1"`) ; `commune_code` et `address` sont toujours
118
- `null` (la source ne les résout pas pour les DAB).
117
+ valeur source non documentée `"1"`) ; `commune_code` est renseigné pour 90
118
+ enregistrements corroborés et vaut sinon `null` ; `address` vaut toujours `null`.
119
119
 
120
120
  ## Besoin des divisions administratives ?
121
121
 
@@ -131,9 +131,11 @@ Les données proviennent d'**Algérie Poste** via l'API publique BaridiMap
131
131
  (<https://baridimap.poste.dz>). Exécutez `npm run fetch` pour régénérer toutes
132
132
  les sorties à partir de l'API en direct ; la même exécution reflète les données
133
133
  dans le paquet `geoalgeria` pour que les deux ne divergent jamais (ce paquet est
134
- la source canonique). Relancez périodiquement BaridiMap classe toujours les
135
- bureaux selon le schéma à 58 wilayas, donc les nouvelles wilayas 59–69
136
- apparaissent actuellement sous leur wilaya mère.
134
+ la source canonique). Relancez périodiquement. BaridiMap classe encore certains
135
+ enregistrements selon le schéma à 58 wilayas. GeoAlgeria rattache les bureaux via
136
+ leur `commune_code` canonique et 90 DAB lorsque le nom français ou arabe exact de la
137
+ commune, la relation avec la wilaya mère et l'unique polygone contenant le point
138
+ concordent. `source_wilaya_code` conserve la valeur fournisseur différente.
137
139
 
138
140
  ## Licence et attribution
139
141
 
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/@geoalgeria/poste)](https://www.npmjs.com/package/@geoalgeria/poste)
10
10
  [![npm downloads](https://img.shields.io/npm/dm/@geoalgeria/poste)](https://www.npmjs.com/package/@geoalgeria/poste)
11
- [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
11
+ [![Code: MIT](https://img.shields.io/badge/Code-MIT-green.svg)](LICENSE)
12
12
 
13
13
  </div>
14
14
 
@@ -77,8 +77,8 @@ data/
77
77
 
78
78
  > GeoJSON includes only records that have coordinates, 16 offices and 5 ATMs
79
79
  > report no `lat`/`lng` and are omitted there (but remain in JSON/CSV, with
80
- > `geo_precision`/`geo_method` both `null`). ATM records carry `commune_code`
81
- > as `null` (the source API doesn't resolve ATMs to a commune code).
80
+ > `geo_precision`/`geo_method` both `null`). For 90 ATMs, GeoAlgeria supplies a
81
+ > `commune_code` only where the commune name, mother wilaya, and point agree.
82
82
 
83
83
  ## Record shapes
84
84
 
@@ -114,8 +114,8 @@ isn't geocoded); `geo_method` names how the point was obtained.
114
114
 
115
115
  **ATM** – same shape, keyed by `id`/`name`/`wilaya_code`/`postal_code` with
116
116
  `lat`/`lng`, plus a `status` field (`"OPEN"`, `"CLOSED (OFFLINE)"`, or the
117
- undocumented source value `"1"`); `commune_code` and `address` are always
118
- `null` (the source doesn't resolve them for ATMs).
117
+ undocumented source value `"1"`). `commune_code` is populated for 90
118
+ corroborated records and is otherwise `null`; `address` is always `null`.
119
119
 
120
120
  ## Need the administrative divisions too?
121
121
 
@@ -130,8 +130,11 @@ Data comes from **Algérie Poste** via the public BaridiMap API
130
130
  (<https://baridimap.poste.dz>). Run `npm run fetch` to regenerate every output
131
131
  from the live API; the same run mirrors the data into the `geoalgeria` package so
132
132
  the two never drift (this package is the canonical source). Re-fetch periodically.
133
- BaridiMap still files offices under the 58-wilaya scheme, so new wilayas 59–69
134
- currently appear under their mother wilaya.
133
+ BaridiMap still files some records under the 58-wilaya scheme. GeoAlgeria
134
+ reconciles each office through its canonical `commune_code`. It also reconciles
135
+ 90 ATMs where the exact French or Arabic commune name, mother-wilaya relationship, and
136
+ sole polygon containment agree. `source_wilaya_code` preserves a differing
137
+ provider value.
135
138
 
136
139
  ## License & attribution
137
140