@geoalgeria/buses 2.2.1 → 2.2.3
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 +2 -2
- package/README.ar.md +3 -1
- package/README.fr.md +12 -10
- package/data/csv/stations.csv +4 -4
- package/data/geojson/stations.geojson +18 -18
- package/data/metadata.json +16 -16
- package/data/stations.json +11 -11
- package/dataset-metadata.json +15 -15
- package/index.js +3 -6
- package/loaders.cjs +38 -0
- package/package.json +3 -2
package/LICENSE
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
MIT License
|
|
4
4
|
|
|
5
|
-
This
|
|
5
|
+
This licence applies to package code. Dataset contents carry separate licences;
|
|
6
6
|
see NOTICE.
|
|
7
7
|
|
|
8
|
-
Copyright (c) 2025-2026 Yasser's
|
|
8
|
+
Copyright (c) 2025-2026 Yasser's studio (https://yasser.studio)
|
|
9
9
|
|
|
10
10
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
11
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.ar.md
CHANGED
|
@@ -75,6 +75,8 @@ const etusa = buses.linesByOperator("ETUSA"); // 76
|
|
|
75
75
|
|
|
76
76
|
<div dir="rtl">
|
|
77
77
|
|
|
78
|
-
من إنجاز [Yasser's
|
|
78
|
+
من إنجاز [Yasser's studio](https://yasser.studio) · [LinkedIn](https://www.linkedin.com/in/yasserberrehail/) · [X](https://x.com/yassersstudio) · [support@yasser.studio](mailto:support@yasser.studio)
|
|
79
|
+
|
|
80
|
+
المشروع مجاني ويبقى كذلك، والاستوديو نفسه ينجز لعملائه خرائط ومواقع ويب وتطبيقات هاتف وبيانات مفتوحة.
|
|
79
81
|
|
|
80
82
|
</div>
|
package/README.fr.md
CHANGED
|
@@ -18,7 +18,7 @@ CSV et GeoJSON. Fait partie de
|
|
|
18
18
|
[GeoAlgeria](https://github.com/yasserstudio/geoalgeria).
|
|
19
19
|
|
|
20
20
|
> Pour les gares routières inter-wilayas voir
|
|
21
|
-
> [`@geoalgeria/gares-routieres`](https://www.npmjs.com/package/@geoalgeria/gares-routieres)
|
|
21
|
+
> [`@geoalgeria/gares-routieres`](https://www.npmjs.com/package/@geoalgeria/gares-routieres) ;
|
|
22
22
|
> pour rail/tram/métro voir [`@geoalgeria/ferroviaire`](https://www.npmjs.com/package/@geoalgeria/ferroviaire).
|
|
23
23
|
|
|
24
24
|
```bash
|
|
@@ -36,13 +36,13 @@ const trace = buses.shapeForLine("etusa-1");
|
|
|
36
36
|
|
|
37
37
|
| Jeu de données | Nombre | Notes |
|
|
38
38
|
| --- | --- | --- |
|
|
39
|
-
| Lignes | **184** | 16 exploitants
|
|
39
|
+
| Lignes | **184** | 16 exploitants ; lignes officielles sans tracé conservées dans l'annuaire |
|
|
40
40
|
| Tracés OSM | **76** | 61 ETUSA + 15 lignes des autres exploitants |
|
|
41
41
|
| Directions | **128** | Relations OSM sources |
|
|
42
42
|
| Stations | **1 603** | Nœuds OSM, noms nuls conservés |
|
|
43
43
|
|
|
44
44
|
L'ordre des 2 685 appartenances est l'ordre brut des membres OSM, marqué
|
|
45
|
-
`osm_member_order_unvalidated`
|
|
45
|
+
`osm_member_order_unvalidated` : il ne constitue pas un ordre voyageurs validé et aucun
|
|
46
46
|
terminus n'est déduit automatiquement.
|
|
47
47
|
|
|
48
48
|
## Source & licence
|
|
@@ -50,7 +50,7 @@ terminus n'est déduit automatiquement.
|
|
|
50
50
|
Les attributs ETUSA issus de **fr.wikipedia** sont sous **CC BY-SA 4.0**. Les tracés,
|
|
51
51
|
directions et stations OpenStreetMap sont sous **ODbL 1.0**, attribution
|
|
52
52
|
**© OpenStreetMap contributors**. Les faits de 14 exploitants cités dans
|
|
53
|
-
[NOTICE](NOTICE) sont extraits de sources officielles sans licence ouverte déclarée
|
|
53
|
+
[NOTICE](NOTICE) sont extraits de sources officielles sans licence ouverte déclarée ; les cartes Google de
|
|
54
54
|
Béjaïa, les schémas de M'Sila, les images de tracé de Sidi Bel Abbès et les graphiques
|
|
55
55
|
ETUS-C Constantine servent uniquement
|
|
56
56
|
à la validation et leur géométrie n'est pas redistribuée. Les 25 lignes de Constantine
|
|
@@ -58,19 +58,21 @@ sont transcrites de deux graphiques de l'exploitant fournis par le propriétaire
|
|
|
58
58
|
projet et restent en annuaire seul, sans tracé, sans arrêts intermédiaires et sans horaires.
|
|
59
59
|
Les identités, terminus arabes et séquences d'arrêts ordonnées de Skikda viennent du site
|
|
60
60
|
de l'exploitant, lu dans un navigateur par le propriétaire du projet car le certificat TLS
|
|
61
|
-
du site avait expiré
|
|
61
|
+
du site avait expiré : les six lignes partent toutes de la place ساحة الشهداء au centre-ville,
|
|
62
62
|
`stops` porte la longueur de la séquence publiée, et la plage de service 06:00 à 19:00,
|
|
63
63
|
qui vaut pour le réseau entier, n'est pas publiée comme horaires par ligne. Les départs complets de Sidi
|
|
64
|
-
Bel Abbès sont transcrits du HTML officiel fourni par le propriétaire du projet
|
|
64
|
+
Bel Abbès sont transcrits du HTML officiel fourni par le propriétaire du projet ; les
|
|
65
65
|
jours non indiqués restent explicitement inconnus.
|
|
66
66
|
Les données de lignes sont donc **© les exploitants respectifs, redistribuées à titre de
|
|
67
|
-
référence**
|
|
68
|
-
[MIT](LICENSE). Aucune expression SPDX ne couvre ce mélange
|
|
69
|
-
`SEE LICENSE IN LICENSE` et les conditions sont énoncées en clair dans [LICENSE](LICENSE)
|
|
67
|
+
référence** ; aucune licence ouverte n'est revendiquée sur elles. Le code est sous
|
|
68
|
+
[MIT](LICENSE). Aucune expression SPDX ne couvre ce mélange : le manifeste déclare
|
|
69
|
+
`SEE LICENSE IN LICENSE` et les conditions sont énoncées en clair dans [LICENSE](LICENSE) ;
|
|
70
70
|
voir [NOTICE](NOTICE).
|
|
71
71
|
|
|
72
72
|
[Voir tous les paquets →](https://geoalgeria.com/data)
|
|
73
73
|
|
|
74
74
|
---
|
|
75
75
|
|
|
76
|
-
Réalisé par [Yasser's
|
|
76
|
+
Réalisé par [Yasser's studio](https://yasser.studio) · [LinkedIn](https://www.linkedin.com/in/yasserberrehail/) · [X](https://x.com/yassersstudio) · [support@yasser.studio](mailto:support@yasser.studio)
|
|
77
|
+
|
|
78
|
+
GeoAlgeria est gratuit, et il le reste. Le même studio réalise aussi des cartes, des sites web, des applications mobiles et des données ouvertes pour ses clients.
|
package/data/csv/stations.csv
CHANGED
|
@@ -960,7 +960,7 @@ osm-node-5380774419,Hamma,,,16,,,36.748569,3.069155,exact,osm_node,osm,"{""osm""
|
|
|
960
960
|
osm-node-5380774420,Sidi M'hamed,,,16,,,36.74966,3.066807,exact,osm_node,osm,"{""osm"":""node/5380774420""}",node,5380774420,"[""etusa""]","[""etusa-14"",""etusa-27"",""etusa-6""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
961
961
|
osm-node-5380774821,Place du 11 Décembre,,,16,,,36.75217,3.062524,exact,osm_node,osm,"{""osm"":""node/5380774821""}",node,5380774821,"[""etusa""]","[""etusa-14"",""etusa-27"",""etusa-34"",""etusa-6""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
962
962
|
osm-node-5380774822,Musset,,,16,,,36.754901,3.06019,exact,osm_node,osm,"{""osm"":""node/5380774822""}",node,5380774822,"[""etusa""]","[""etusa-14"",""etusa-27"",""etusa-34"",""etusa-6""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
963
|
-
osm-node-5380774823,1er Mai,1er Mai,,16,,,36.
|
|
963
|
+
osm-node-5380774823,1er Mai,1er Mai,,16,,,36.7599996,3.0569475,exact,osm_node,osm,"{""osm"":""node/5380774823""}",node,5380774823,"[""etusa""]","[""etusa-14"",""etusa-15"",""etusa-16"",""etusa-27"",""etusa-34"",""etusa-88""]",point_in_wilaya,"[""stop"",""stop_entry_only"",""stop_exit_only""]",,stop_position
|
|
964
964
|
osm-node-5380794977,LES ATELIERS الورشات,LES ATELIERS,الورشات,16,,,36.752082,3.070571,exact,osm_node,osm,"{""osm"":""node/5380794977""}",node,5380794977,"[""etusa""]","[""etusa-14"",""etusa-27"",""etusa-34"",""etusa-6""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
965
965
|
osm-node-5380794978,Jardin d'Essai حديقة التجارب,Jardin d'Essai,حديقة التجارب,16,,,36.750805,3.076295,exact,osm_node,osm,"{""osm"":""node/5380794978""}",node,5380794978,"[""etusa""]","[""etusa-14"",""etusa-27"",""etusa-34"",""etusa-6""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
966
966
|
osm-node-5380794979,Hamoud Boualem,,,16,,,36.747946,3.083912,exact,osm_node,osm,"{""osm"":""node/5380794979""}",node,5380794979,"[""etusa""]","[""etusa-14"",""etusa-27"",""etusa-34"",""etusa-6"",""etusa-66""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
@@ -982,7 +982,7 @@ osm-node-5387202990,Cité Amirouche,,,16,,,36.738042,3.094515,exact,osm_node,osm
|
|
|
982
982
|
osm-node-5387204311,Cité Mer et Soleil,Cité Mer et Soleil,حي البحر والشمس,16,,,36.73362,3.101046,exact,osm_node,osm,"{""osm"":""node/5387204311""}",node,5387204311,"[""etusa""]","[""etusa-66""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
983
983
|
osm-node-5387204312,Cité Mer et Soleil,Cité Mer et Soleil,حي البحر والشمس,16,,,36.733665,3.101067,exact,osm_node,osm,"{""osm"":""node/5387204312""}",node,5387204312,"[""etusa""]","[""etusa-66""]",point_in_wilaya,"[""platform""]",bus_stop,platform
|
|
984
984
|
osm-node-5387204313,Durafour,,,16,,,36.732838,3.10467,exact,osm_node,osm,"{""osm"":""node/5387204313""}",node,5387204313,"[""etusa""]","[""etusa-66""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
985
|
-
osm-node-5387204314,PARNET,,,16,,,36.
|
|
985
|
+
osm-node-5387204314,PARNET,,,16,,,36.7329998,3.1047857,exact,osm_node,osm,"{""osm"":""node/5387204314""}",node,5387204314,"[""etusa""]","[""etusa-66""]",point_in_wilaya,"[""platform""]",bus_stop,platform
|
|
986
986
|
osm-node-5387204315,CITE MAYA,,,16,,,36.730146,3.103059,exact,osm_node,osm,"{""osm"":""node/5387204315""}",node,5387204315,"[""etusa""]","[""etusa-66""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
987
987
|
osm-node-5387204316,CITE MAYA,,,16,,,36.731271,3.103841,exact,osm_node,osm,"{""osm"":""node/5387204316""}",node,5387204316,"[""etusa""]","[""etusa-66""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
988
988
|
osm-node-5387204317,STATION HAI EL BADR,,,16,,,36.72464,3.101326,exact,osm_node,osm,"{""osm"":""node/5387204317""}",node,5387204317,"[""etusa""]","[""etusa-66""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
@@ -1288,7 +1288,7 @@ osm-node-5400072357,Sup,,,16,,,36.760864,3.048963,exact,osm_node,osm,"{""osm"":"
|
|
|
1288
1288
|
osm-node-5400883172,عين تقورايت - المدرسة الثانوية منى بن طاهر,AÏN TAGOURAIT - LYCEE BENTAHAR MOUNA -,عين تقورايت - المدرسة الثانوية منى بن طاهر,42,,,36.599782,2.596993,exact,osm_node,osm,"{""osm"":""node/5400883172""}",node,5400883172,"[""etusa""]","[""etusa-747""]",point_in_wilaya,"[""stop_exit_only""]",,stop_position
|
|
1289
1289
|
osm-node-5400891416,Aïn Benian - Gare routière,Aïn Benian - Gare routière,,16,,,36.80177,2.910338,exact,osm_node,osm,"{""osm"":""node/5400891416""}",node,5400891416,"[""etusa""]","[""etusa-99""]",point_in_wilaya,"[""stop_exit_only""]",,stop_position
|
|
1290
1290
|
osm-node-5400906393,Bouzareah,Bouzareah,,16,,,36.790209,3.01721,exact,osm_node,osm,"{""osm"":""node/5400906393""}",node,5400906393,"[""etusa""]","[""etusa-10"",""etusa-45""]",point_in_wilaya,"[""stop_entry_only"",""stop_exit_only""]",,stop_position
|
|
1291
|
-
osm-node-5400974163,Oukba,Oukba,عقبة,16,,,36.789114,3.
|
|
1291
|
+
osm-node-5400974163,Oukba,Oukba,عقبة,16,,,36.789114,3.0559999,exact,osm_node,osm,"{""osm"":""node/5400974163""}",node,5400974163,"[""etusa""]","[""etusa-45""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
1292
1292
|
osm-node-5400974164,El Kettar,El Kettar,,16,,,36.785686,3.047449,exact,osm_node,osm,"{""osm"":""node/5400974164""}",node,5400974164,"[""etusa""]","[""etusa-45"",""etusa-46""]",point_in_wilaya,"[""platform""]",bus_stop,platform
|
|
1293
1293
|
osm-node-5400974165,Secouto,Secouto,,16,,,36.785429,3.042624,exact,osm_node,osm,"{""osm"":""node/5400974165""}",node,5400974165,"[""etusa""]","[""etusa-45"",""etusa-58""]",point_in_wilaya,"[""platform""]",bus_stop,platform
|
|
1294
1294
|
osm-node-5400974166,Sekoto,Secouto,,16,,,36.785431,3.0429,exact,osm_node,osm,"{""osm"":""node/5400974166""}",node,5400974166,"[""etusa""]","[""etusa-45"",""etusa-58""]",point_in_wilaya,"[""platform""]",bus_stop,platform
|
|
@@ -1465,7 +1465,7 @@ osm-node-843185870,Hidhab 3 bus stop,,,19,,,36.206628,5.437027,exact,osm_node,os
|
|
|
1465
1465
|
osm-node-843185958,Hidhab 2 bus stop,,,19,,,36.205865,5.435692,exact,osm_node,osm,"{""osm"":""node/843185958""}",node,843185958,"[""etus-setif""]","[""etus-setif-104""]",point_in_wilaya,"[""stop""]",,stop_position
|
|
1466
1466
|
osm-node-9031893751,الجامعة (الحديقة),,,14,,,35.34936,1.317343,exact,osm_node,osm,"{""osm"":""node/9031893751""}",node,9031893751,"[""etus-tiaret""]","[""etus-tiaret-26""]",point_in_wilaya,"[""platform""]",bus_stop,platform
|
|
1467
1467
|
osm-node-9031893753,نفطال,,,14,,,35.366051,1.312744,exact,osm_node,osm,"{""osm"":""node/9031893753""}",node,9031893753,"[""etus-tiaret""]","[""etus-tiaret-26""]",point_in_wilaya,"[""platform""]",bus_stop,platform
|
|
1468
|
-
osm-node-9031893754,,,,14,,,35.
|
|
1468
|
+
osm-node-9031893754,,,,14,,,35.3613829,1.3119995,exact,osm_node,osm,"{""osm"":""node/9031893754""}",node,9031893754,"[""etus-tiaret""]","[""etus-tiaret-26""]",point_in_wilaya,"[""platform""]",bus_stop,platform
|
|
1469
1469
|
osm-node-9031893755,مديرية النشاط الاجتماعي,,,14,,,35.374195,1.323314,exact,osm_node,osm,"{""osm"":""node/9031893755""}",node,9031893755,"[""etus-tiaret""]","[""etus-tiaret-26"",""etus-tiaret-31""]",point_in_wilaya,"[""platform""]",,platform
|
|
1470
1470
|
osm-node-9031893756,المركب الجواري المدرسة,,,14,,,35.37129,1.317172,exact,osm_node,osm,"{""osm"":""node/9031893756""}",node,9031893756,"[""etus-tiaret""]","[""etus-tiaret-26""]",point_in_wilaya,"[""platform""]",bus_stop,platform
|
|
1471
1471
|
osm-node-9031893757,ملتقى الطرق (المقبرة),,,14,,,35.377145,1.329126,exact,osm_node,osm,"{""osm"":""node/9031893757""}",node,9031893757,"[""etus-tiaret""]","[""etus-tiaret-26"",""etus-tiaret-31""]",point_in_wilaya,"[""platform""]",bus_stop,platform
|
|
@@ -39894,8 +39894,8 @@
|
|
|
39894
39894
|
"geometry": {
|
|
39895
39895
|
"type": "Point",
|
|
39896
39896
|
"coordinates": [
|
|
39897
|
-
3.
|
|
39898
|
-
36.
|
|
39897
|
+
3.0569475,
|
|
39898
|
+
36.7599996
|
|
39899
39899
|
]
|
|
39900
39900
|
},
|
|
39901
39901
|
"properties": {
|
|
@@ -39906,9 +39906,9 @@
|
|
|
39906
39906
|
"wilaya_code": "16",
|
|
39907
39907
|
"commune_code": null,
|
|
39908
39908
|
"commune": null,
|
|
39909
|
-
"lat": 36.
|
|
39910
|
-
"lng": 3.
|
|
39911
|
-
"geo_precision": "
|
|
39909
|
+
"lat": 36.7599996,
|
|
39910
|
+
"lng": 3.0569475,
|
|
39911
|
+
"geo_precision": "exact",
|
|
39912
39912
|
"geo_method": "osm_node",
|
|
39913
39913
|
"source": "osm",
|
|
39914
39914
|
"osm_type": "node",
|
|
@@ -40840,8 +40840,8 @@
|
|
|
40840
40840
|
"geometry": {
|
|
40841
40841
|
"type": "Point",
|
|
40842
40842
|
"coordinates": [
|
|
40843
|
-
3.
|
|
40844
|
-
36.
|
|
40843
|
+
3.1047857,
|
|
40844
|
+
36.7329998
|
|
40845
40845
|
]
|
|
40846
40846
|
},
|
|
40847
40847
|
"properties": {
|
|
@@ -40852,9 +40852,9 @@
|
|
|
40852
40852
|
"wilaya_code": "16",
|
|
40853
40853
|
"commune_code": null,
|
|
40854
40854
|
"commune": null,
|
|
40855
|
-
"lat": 36.
|
|
40856
|
-
"lng": 3.
|
|
40857
|
-
"geo_precision": "
|
|
40855
|
+
"lat": 36.7329998,
|
|
40856
|
+
"lng": 3.1047857,
|
|
40857
|
+
"geo_precision": "exact",
|
|
40858
40858
|
"geo_method": "osm_node",
|
|
40859
40859
|
"source": "osm",
|
|
40860
40860
|
"osm_type": "node",
|
|
@@ -53576,7 +53576,7 @@
|
|
|
53576
53576
|
"geometry": {
|
|
53577
53577
|
"type": "Point",
|
|
53578
53578
|
"coordinates": [
|
|
53579
|
-
3.
|
|
53579
|
+
3.0559999,
|
|
53580
53580
|
36.789114
|
|
53581
53581
|
]
|
|
53582
53582
|
},
|
|
@@ -53589,8 +53589,8 @@
|
|
|
53589
53589
|
"commune_code": null,
|
|
53590
53590
|
"commune": null,
|
|
53591
53591
|
"lat": 36.789114,
|
|
53592
|
-
"lng": 3.
|
|
53593
|
-
"geo_precision": "
|
|
53592
|
+
"lng": 3.0559999,
|
|
53593
|
+
"geo_precision": "exact",
|
|
53594
53594
|
"geo_method": "osm_node",
|
|
53595
53595
|
"source": "osm",
|
|
53596
53596
|
"osm_type": "node",
|
|
@@ -60897,8 +60897,8 @@
|
|
|
60897
60897
|
"geometry": {
|
|
60898
60898
|
"type": "Point",
|
|
60899
60899
|
"coordinates": [
|
|
60900
|
-
1.
|
|
60901
|
-
35.
|
|
60900
|
+
1.3119995,
|
|
60901
|
+
35.3613829
|
|
60902
60902
|
]
|
|
60903
60903
|
},
|
|
60904
60904
|
"properties": {
|
|
@@ -60909,9 +60909,9 @@
|
|
|
60909
60909
|
"wilaya_code": "14",
|
|
60910
60910
|
"commune_code": null,
|
|
60911
60911
|
"commune": null,
|
|
60912
|
-
"lat": 35.
|
|
60913
|
-
"lng": 1.
|
|
60914
|
-
"geo_precision": "
|
|
60912
|
+
"lat": 35.3613829,
|
|
60913
|
+
"lng": 1.3119995,
|
|
60914
|
+
"geo_precision": "exact",
|
|
60915
60915
|
"geo_method": "osm_node",
|
|
60916
60916
|
"source": "osm",
|
|
60917
60917
|
"osm_type": "node",
|
package/data/metadata.json
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"geocoded_count": 1603,
|
|
9
9
|
"geocoded_pct": 89.7,
|
|
10
10
|
"precision": {
|
|
11
|
-
"exact":
|
|
12
|
-
"approximate":
|
|
11
|
+
"exact": 1600,
|
|
12
|
+
"approximate": 3
|
|
13
13
|
},
|
|
14
14
|
"estimated_universe": null,
|
|
15
15
|
"coverage_pct": null,
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"key": "etus-tiaret",
|
|
45
45
|
"name": "ETUS Tiaret: current Lines",
|
|
46
46
|
"url": "https://www.etus-tiaret.dz/ar/lines",
|
|
47
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
47
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
48
48
|
"retrieved": "2026-09-02",
|
|
49
49
|
"evidence_type": "official"
|
|
50
50
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"key": "etusto",
|
|
53
53
|
"name": "ETUSTO: passenger Lines",
|
|
54
54
|
"url": "http://etusto.dz/espv.html",
|
|
55
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
55
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
56
56
|
"retrieved": "2026-09-02",
|
|
57
57
|
"evidence_type": "official"
|
|
58
58
|
},
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"key": "etus-bejaia",
|
|
61
61
|
"name": "ETUS Béjaïa: WordPress REST itineraries and Line maps",
|
|
62
62
|
"url": "https://etusbejaia.dz/wp-json/wp/v2/pages?slug=itineraires-et-plans-des-lignes",
|
|
63
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
63
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
64
64
|
"retrieved": "2026-09-02",
|
|
65
65
|
"evidence_type": "official"
|
|
66
66
|
},
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"key": "etus-msila",
|
|
69
69
|
"name": "ETUS M'Sila: official Line pages and diagrams",
|
|
70
70
|
"url": "https://etus-msila.dz/",
|
|
71
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
71
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
72
72
|
"retrieved": "2026-09-02",
|
|
73
73
|
"evidence_type": "official"
|
|
74
74
|
},
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"key": "etus-sidi-bel-abbes",
|
|
77
77
|
"name": "ETUS Sidi Bel Abbès: network and timetable pages",
|
|
78
78
|
"url": "https://etus22.dz/Horaires.php",
|
|
79
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
79
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
80
80
|
"retrieved": "2026-09-02",
|
|
81
81
|
"evidence_type": "official"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"key": "etus-setif",
|
|
85
85
|
"name": "ETUS Setif: 2026 Line artwork supplied by project owner",
|
|
86
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
86
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
87
87
|
"retrieved": "2026-09-02",
|
|
88
88
|
"evidence_type": "official"
|
|
89
89
|
},
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"key": "etus-ain-defla",
|
|
92
92
|
"name": "ETUS Aïn Defla: 2025 Line artwork and Eid service program supplied by project owner",
|
|
93
93
|
"url": "https://www.facebook.com/ETUS44/",
|
|
94
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
94
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
95
95
|
"retrieved": "2026-09-03",
|
|
96
96
|
"evidence_type": "official"
|
|
97
97
|
},
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"key": "etus-annaba",
|
|
100
100
|
"name": "ETUS Annaba: Eid al-Adha 2026 service program supplied by project owner",
|
|
101
101
|
"url": "https://www.facebook.com/100063517660926/",
|
|
102
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
102
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
103
103
|
"retrieved": "2026-09-03",
|
|
104
104
|
"evidence_type": "official"
|
|
105
105
|
},
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"key": "etus-tlemcen",
|
|
108
108
|
"name": "ETUS Tlemcen: Eid al-Adha 2026 service program supplied by project owner",
|
|
109
109
|
"url": "https://www.facebook.com/etustlemcen13/",
|
|
110
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
110
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
111
111
|
"retrieved": "2026-09-03",
|
|
112
112
|
"evidence_type": "official"
|
|
113
113
|
},
|
|
@@ -115,21 +115,21 @@
|
|
|
115
115
|
"key": "eto-oran",
|
|
116
116
|
"name": "ETO Oran: route drawings published on the Operator page, supplied by project owner",
|
|
117
117
|
"url": "https://www.facebook.com/p/ETO-100093054514209/",
|
|
118
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
118
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
119
119
|
"retrieved": "2026-09-04",
|
|
120
120
|
"evidence_type": "official"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"key": "etus-oeb",
|
|
124
124
|
"name": "ETUS Oum El Bouaghi: numbered Line diagrams supplied by project owner",
|
|
125
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
125
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
126
126
|
"retrieved": "2026-09-04",
|
|
127
127
|
"evidence_type": "official"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
"key": "etus-c-constantine",
|
|
131
131
|
"name": "ETUS-C Constantine: numbered route graphics supplied by project owner",
|
|
132
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
132
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
133
133
|
"retrieved": "2026-09-16",
|
|
134
134
|
"evidence_type": "official"
|
|
135
135
|
},
|
|
@@ -137,14 +137,14 @@
|
|
|
137
137
|
"key": "etus-skikda",
|
|
138
138
|
"name": "ETUS Skikda: Operator website Line pages and service section supplied by project owner",
|
|
139
139
|
"url": "https://etus-skikda.dz/",
|
|
140
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
140
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
141
141
|
"retrieved": "2026-09-27",
|
|
142
142
|
"evidence_type": "official"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
"key": "etul-laghouat",
|
|
146
146
|
"name": "ETUL Laghouat: dated operating programs supplied by project owner",
|
|
147
|
-
"license": "Proprietary factual reference data; no open reuse
|
|
147
|
+
"license": "Proprietary factual reference data; no open reuse licence",
|
|
148
148
|
"retrieved": "2026-09-04",
|
|
149
149
|
"evidence_type": "official"
|
|
150
150
|
},
|
package/data/stations.json
CHANGED
|
@@ -30285,9 +30285,9 @@
|
|
|
30285
30285
|
"wilaya_code": "16",
|
|
30286
30286
|
"commune_code": null,
|
|
30287
30287
|
"commune": null,
|
|
30288
|
-
"lat": 36.
|
|
30289
|
-
"lng": 3.
|
|
30290
|
-
"geo_precision": "
|
|
30288
|
+
"lat": 36.7599996,
|
|
30289
|
+
"lng": 3.0569475,
|
|
30290
|
+
"geo_precision": "exact",
|
|
30291
30291
|
"geo_method": "osm_node",
|
|
30292
30292
|
"source": "osm",
|
|
30293
30293
|
"osm_type": "node",
|
|
@@ -31011,9 +31011,9 @@
|
|
|
31011
31011
|
"wilaya_code": "16",
|
|
31012
31012
|
"commune_code": null,
|
|
31013
31013
|
"commune": null,
|
|
31014
|
-
"lat": 36.
|
|
31015
|
-
"lng": 3.
|
|
31016
|
-
"geo_precision": "
|
|
31014
|
+
"lat": 36.7329998,
|
|
31015
|
+
"lng": 3.1047857,
|
|
31016
|
+
"geo_precision": "exact",
|
|
31017
31017
|
"geo_method": "osm_node",
|
|
31018
31018
|
"source": "osm",
|
|
31019
31019
|
"osm_type": "node",
|
|
@@ -40688,8 +40688,8 @@
|
|
|
40688
40688
|
"commune_code": null,
|
|
40689
40689
|
"commune": null,
|
|
40690
40690
|
"lat": 36.789114,
|
|
40691
|
-
"lng": 3.
|
|
40692
|
-
"geo_precision": "
|
|
40691
|
+
"lng": 3.0559999,
|
|
40692
|
+
"geo_precision": "exact",
|
|
40693
40693
|
"geo_method": "osm_node",
|
|
40694
40694
|
"source": "osm",
|
|
40695
40695
|
"osm_type": "node",
|
|
@@ -46238,9 +46238,9 @@
|
|
|
46238
46238
|
"wilaya_code": "14",
|
|
46239
46239
|
"commune_code": null,
|
|
46240
46240
|
"commune": null,
|
|
46241
|
-
"lat": 35.
|
|
46242
|
-
"lng": 1.
|
|
46243
|
-
"geo_precision": "
|
|
46241
|
+
"lat": 35.3613829,
|
|
46242
|
+
"lng": 1.3119995,
|
|
46243
|
+
"geo_precision": "exact",
|
|
46244
46244
|
"geo_method": "osm_node",
|
|
46245
46245
|
"source": "osm",
|
|
46246
46246
|
"osm_type": "node",
|
package/dataset-metadata.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"isAccessibleForFree": true,
|
|
10
10
|
"creator": {
|
|
11
11
|
"@type": "Organization",
|
|
12
|
-
"name": "Yasser's
|
|
12
|
+
"name": "Yasser's studio",
|
|
13
13
|
"url": "https://yasser.studio"
|
|
14
14
|
},
|
|
15
15
|
"spatialCoverage": {
|
|
@@ -58,20 +58,20 @@
|
|
|
58
58
|
"sameAs": "https://github.com/yasserstudio/geoalgeria",
|
|
59
59
|
"citation": [
|
|
60
60
|
"French Wikipedia: Lignes de bus ETUSA de 1 à 99, CC BY-SA 4.0",
|
|
61
|
-
"ETUS Tiaret: current Lines, Proprietary factual reference data; no open reuse
|
|
62
|
-
"ETUSTO: passenger Lines, Proprietary factual reference data; no open reuse
|
|
63
|
-
"ETUS Béjaïa: WordPress REST itineraries and Line maps, Proprietary factual reference data; no open reuse
|
|
64
|
-
"ETUS M'Sila: official Line pages and diagrams, Proprietary factual reference data; no open reuse
|
|
65
|
-
"ETUS Sidi Bel Abbès: network and timetable pages, Proprietary factual reference data; no open reuse
|
|
66
|
-
"ETUS Setif: 2026 Line artwork supplied by project owner, Proprietary factual reference data; no open reuse
|
|
67
|
-
"ETUS Aïn Defla: 2025 Line artwork and Eid service program supplied by project owner, Proprietary factual reference data; no open reuse
|
|
68
|
-
"ETUS Annaba: Eid al-Adha 2026 service program supplied by project owner, Proprietary factual reference data; no open reuse
|
|
69
|
-
"ETUS Tlemcen: Eid al-Adha 2026 service program supplied by project owner, Proprietary factual reference data; no open reuse
|
|
70
|
-
"ETO Oran: route drawings published on the Operator page, supplied by project owner, Proprietary factual reference data; no open reuse
|
|
71
|
-
"ETUS Oum El Bouaghi: numbered Line diagrams supplied by project owner, Proprietary factual reference data; no open reuse
|
|
72
|
-
"ETUS-C Constantine: numbered route graphics supplied by project owner, Proprietary factual reference data; no open reuse
|
|
73
|
-
"ETUS Skikda: Operator website Line pages and service section supplied by project owner, Proprietary factual reference data; no open reuse
|
|
74
|
-
"ETUL Laghouat: dated operating programs supplied by project owner, Proprietary factual reference data; no open reuse
|
|
61
|
+
"ETUS Tiaret: current Lines, Proprietary factual reference data; no open reuse licence",
|
|
62
|
+
"ETUSTO: passenger Lines, Proprietary factual reference data; no open reuse licence",
|
|
63
|
+
"ETUS Béjaïa: WordPress REST itineraries and Line maps, Proprietary factual reference data; no open reuse licence",
|
|
64
|
+
"ETUS M'Sila: official Line pages and diagrams, Proprietary factual reference data; no open reuse licence",
|
|
65
|
+
"ETUS Sidi Bel Abbès: network and timetable pages, Proprietary factual reference data; no open reuse licence",
|
|
66
|
+
"ETUS Setif: 2026 Line artwork supplied by project owner, Proprietary factual reference data; no open reuse licence",
|
|
67
|
+
"ETUS Aïn Defla: 2025 Line artwork and Eid service program supplied by project owner, Proprietary factual reference data; no open reuse licence",
|
|
68
|
+
"ETUS Annaba: Eid al-Adha 2026 service program supplied by project owner, Proprietary factual reference data; no open reuse licence",
|
|
69
|
+
"ETUS Tlemcen: Eid al-Adha 2026 service program supplied by project owner, Proprietary factual reference data; no open reuse licence",
|
|
70
|
+
"ETO Oran: route drawings published on the Operator page, supplied by project owner, Proprietary factual reference data; no open reuse licence",
|
|
71
|
+
"ETUS Oum El Bouaghi: numbered Line diagrams supplied by project owner, Proprietary factual reference data; no open reuse licence",
|
|
72
|
+
"ETUS-C Constantine: numbered route graphics supplied by project owner, Proprietary factual reference data; no open reuse licence",
|
|
73
|
+
"ETUS Skikda: Operator website Line pages and service section supplied by project owner, Proprietary factual reference data; no open reuse licence",
|
|
74
|
+
"ETUL Laghouat: dated operating programs supplied by project owner, Proprietary factual reference data; no open reuse licence",
|
|
75
75
|
"OpenStreetMap: reviewed urban bus relations, ODbL 1.0 (© OpenStreetMap contributors)"
|
|
76
76
|
]
|
|
77
77
|
}
|
package/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
// @geoalgeria/buses: loaders for Algeria's reviewed urban/suburban bus networks.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const DATA = join(dirname(fileURLToPath(import.meta.url)), "data");
|
|
7
|
-
const load = (p) => JSON.parse(readFileSync(join(DATA, p), "utf-8"));
|
|
2
|
+
// `load` reaches each data file by a literal path a bundler can follow; a path
|
|
3
|
+
// built at runtime builds fine and then throws ENOENT (loaders.cjs, #290).
|
|
4
|
+
import load from "./loaders.cjs";
|
|
8
5
|
|
|
9
6
|
export const lines = () => load("lines.json"); // urban bus lines (v1: ETUSA/Alger)
|
|
10
7
|
export const lineById = (id) => lines().find((l) => l.id === id) ?? null;
|
package/loaders.cjs
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// GENERATED by scripts/generate-loaders.mjs. Do not edit by hand.
|
|
2
|
+
//
|
|
3
|
+
// One loader per data file, each with a literal path a bundler can follow. The
|
|
4
|
+
// package is ESM, where there is no lazy synchronous JSON import, so the
|
|
5
|
+
// requires live here in CommonJS: `index.js` imports this as its `load`
|
|
6
|
+
// helper and its call sites are unchanged. A `require` inside a function stays
|
|
7
|
+
// lazy, so importing @geoalgeria/buses still parses nothing.
|
|
8
|
+
//
|
|
9
|
+
// Why, and what each bundler does with it: scripts/check-bundlers.mjs
|
|
10
|
+
// (issues #276 and #290).
|
|
11
|
+
|
|
12
|
+
const LOADERS = {
|
|
13
|
+
"directions.json": () => require("./data/directions.json"),
|
|
14
|
+
"lines.json": () => require("./data/lines.json"),
|
|
15
|
+
"metadata.json": () => require("./data/metadata.json"),
|
|
16
|
+
"operators.json": () => require("./data/operators.json"),
|
|
17
|
+
"shapes.json": () => require("./data/shapes.json"),
|
|
18
|
+
"station-memberships.json": () => require("./data/station-memberships.json"),
|
|
19
|
+
"stations.json": () => require("./data/stations.json"),
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Read one of this package's data files.
|
|
24
|
+
*
|
|
25
|
+
* Every call answers with a fresh copy, exactly as the `JSON.parse` this
|
|
26
|
+
* replaced did, so a caller that sorts or splices what it gets cannot reorder
|
|
27
|
+
* another caller's data. The copy is what makes that true: the `require` cache
|
|
28
|
+
* holds one parse of the file, and a bundler inlines it as a single shared
|
|
29
|
+
* object, so handing that out directly would be shared mutable state.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} file file name under `data/`, e.g. "directions.json"
|
|
32
|
+
* @returns {any} the parsed JSON
|
|
33
|
+
*/
|
|
34
|
+
module.exports = function load(file) {
|
|
35
|
+
const loader = LOADERS[file];
|
|
36
|
+
if (!loader) throw new Error(`@geoalgeria/buses: no data file "${file}" in this package`);
|
|
37
|
+
return structuredClone(loader());
|
|
38
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geoalgeria/buses",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Reviewed urban and suburban bus data for Algeria: 184 Lines, 76 shapes, 128 Directions and 1,603 Stations across 16 Operators.",
|
|
6
6
|
"main": "index.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"data/**/*.csv",
|
|
20
20
|
"data/**/*.geojson",
|
|
21
21
|
"types/",
|
|
22
|
+
"loaders.cjs",
|
|
22
23
|
"index.js"
|
|
23
24
|
],
|
|
24
25
|
"scripts": {
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"geoalgeria",
|
|
39
40
|
"dz"
|
|
40
41
|
],
|
|
41
|
-
"author": "Yasser's
|
|
42
|
+
"author": "Yasser's studio (https://yasser.studio)",
|
|
42
43
|
"license": "SEE LICENSE IN LICENSE",
|
|
43
44
|
"publishConfig": {
|
|
44
45
|
"access": "public"
|