@geoalgeria/buses 2.1.0 → 2.2.0
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 +12 -0
- package/NOTICE +5 -5
- package/README.ar.md +12 -7
- package/README.fr.md +16 -8
- package/README.md +25 -14
- package/data/csv/lines.csv +185 -154
- package/data/lines.json +1116 -0
- package/data/metadata.json +40 -21
- package/data/operators.json +34 -0
- package/dataset-metadata.json +19 -17
- package/index.js +1 -1
- package/package.json +3 -3
- package/types/index.d.ts +4 -1
package/LICENSE
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
## Code
|
|
2
|
+
|
|
1
3
|
MIT License
|
|
2
4
|
|
|
3
5
|
This license applies to package code. Dataset contents carry separate licences;
|
|
@@ -22,3 +24,13 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
22
24
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
25
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
26
|
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
## Data
|
|
29
|
+
|
|
30
|
+
CC-BY-SA-4.0 AND ODbL-1.0 AND LicenseRef-Operator-Data
|
|
31
|
+
|
|
32
|
+
ETUSA Line attributes come from French Wikipedia under CC BY-SA 4.0. Shapes, Directions, Stations, and memberships come from a reviewed OpenStreetMap snapshot under ODbL 1.0 with attribution © OpenStreetMap contributors.
|
|
33
|
+
|
|
34
|
+
ETUS Tiaret, ETUSTO, ETUS Béjaïa, ETUS M'Sila, ETUS Sidi Bel Abbès, ETUS Setif, ETUS Aïn Defla, ETUS Annaba, ETUS Tlemcen, ETO Oran, ETUS Oum El Bouaghi, and ETUL Laghouat Line facts come from official Operator pages, APIs, programs, and maps. The official source materials do not state an open reuse licence.
|
|
35
|
+
|
|
36
|
+
Data licences and attribution requirements are detailed in NOTICE.
|
package/NOTICE
CHANGED
|
@@ -16,11 +16,11 @@ LicenseRef-Operator-Data
|
|
|
16
16
|
Factual Line identities, endpoints, stop counts, and service hours attributed
|
|
17
17
|
to ETUS Tiaret, ETUSTO, ETUS Béjaïa, ETUS M'Sila, ETUS Sidi Bel Abbès,
|
|
18
18
|
ETUS Setif, ETUS Aïn Defla, ETUS Annaba, ETUS Tlemcen, ETO Oran,
|
|
19
|
-
ETUS Oum El Bouaghi, and ETUL Laghouat are
|
|
20
|
-
official websites, APIs, programs, and maps.
|
|
21
|
-
state an open reuse licence. All rights in the
|
|
22
|
-
their respective Operators; their inclusion as
|
|
23
|
-
grant additional rights beyond applicable law.
|
|
19
|
+
ETUS Oum El Bouaghi, ETUS-C Constantine, ETUS Skikda, and ETUL Laghouat are
|
|
20
|
+
extracted from those Operators' official websites, APIs, programs, and maps.
|
|
21
|
+
Those source materials do not state an open reuse licence. All rights in the
|
|
22
|
+
source materials remain with their respective Operators; their inclusion as
|
|
23
|
+
factual reference data does not grant additional rights beyond applicable law.
|
|
24
24
|
|
|
25
25
|
Database rights and share-alike obligations may apply to redistributed derived
|
|
26
26
|
databases. This notice does not replace any applicable licence text or source
|
package/README.ar.md
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@geoalgeria/buses)
|
|
10
10
|
[](https://www.npmjs.com/package/@geoalgeria/buses)
|
|
11
|
-
[](LICENSE)
|
|
12
12
|
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
15
|
<div dir="rtl">
|
|
16
16
|
|
|
17
|
-
بيانات مراجعة لخطوط الحافلات الحضرية وشبه الحضرية: **
|
|
18
|
-
و**1,603 محطة** لدى
|
|
17
|
+
بيانات مراجعة لخطوط الحافلات الحضرية وشبه الحضرية: **184 خطًا** و**76 مسارًا** و**128 اتجاهًا**
|
|
18
|
+
و**1,603 محطة** لدى 16 مشغّلًا.
|
|
19
19
|
بصيغ JSON وCSV وGeoJSON. جزء من
|
|
20
20
|
[GeoAlgeria](https://github.com/yasserstudio/geoalgeria).
|
|
21
21
|
|
|
@@ -32,7 +32,7 @@ npm install @geoalgeria/buses
|
|
|
32
32
|
|
|
33
33
|
```js
|
|
34
34
|
import buses from "@geoalgeria/buses";
|
|
35
|
-
const all = buses.lines(); //
|
|
35
|
+
const all = buses.lines(); // 184
|
|
36
36
|
const etusa = buses.linesByOperator("ETUSA"); // 76
|
|
37
37
|
```
|
|
38
38
|
|
|
@@ -42,7 +42,7 @@ const etusa = buses.linesByOperator("ETUSA"); // 76
|
|
|
42
42
|
|
|
43
43
|
| مجموعة البيانات | العدد | ملاحظات |
|
|
44
44
|
| --- | --- | --- |
|
|
45
|
-
| الخطوط | **
|
|
45
|
+
| الخطوط | **184** | 16 مشغلًا؛ تبقى الخطوط الرسمية بدون مسار متاحة في الدليل |
|
|
46
46
|
| المسارات | **76** | مسارات OSM مراجعة |
|
|
47
47
|
| الاتجاهات | **128** | علاقات OSM المصدرية |
|
|
48
48
|
| المحطات | **1,603** | عقد OSM مع الحفاظ على الأسماء الفارغة |
|
|
@@ -54,8 +54,13 @@ const etusa = buses.linesByOperator("ETUSA"); // 76
|
|
|
54
54
|
|
|
55
55
|
خصائص خطوط ETUSA من **fr.wikipedia** برخصة **CC BY-SA 4.0**. المسارات والاتجاهات والمحطات
|
|
56
56
|
من OpenStreetMap برخصة **ODbL 1.0** مع الإسناد **© OpenStreetMap contributors**.
|
|
57
|
-
حقائق خطوط
|
|
58
|
-
تعلن رخصة مفتوحة. تُستخدم خرائط Google الخاصة ببجاية ومخططات المسيلة وصور مسارات سيدي بلعباس للتحقق فقط ولا نعيد نشر هندستها.
|
|
57
|
+
حقائق خطوط 14 مشغلًا المذكورة في [NOTICE](NOTICE) مستخرجة من مصادر المشغلين الرسمية التي لا
|
|
58
|
+
تعلن رخصة مفتوحة. تُستخدم خرائط Google الخاصة ببجاية ومخططات المسيلة وصور مسارات سيدي بلعباس ورسومات ETUS-C قسنطينة للتحقق فقط ولا نعيد نشر هندستها.
|
|
59
|
+
خطوط قسنطينة الـ25 منسوخة من رسمين رسميين للمشغّل قدّمهما صاحب المشروع، وتبقى في الدليل فقط: بلا مسار ولا محطات وسطية ولا أوقات.
|
|
60
|
+
خطوط سكيكدة الـ6 وتسمياتها الطرفية وقوائم محطاتها المرتّبة بالعربية منسوخة من موقع المشغّل نفسه،
|
|
61
|
+
قرأه صاحب المشروع في متصفّح لأن شهادة TLS للموقع منتهية الصلاحية؛ وتنطلق الخطوط الستة كلها من
|
|
62
|
+
ساحة الشهداء بوسط المدينة، ويحمل الحقل `stops` طول القائمة المنشورة، أما نافذة الخدمة من 06:00
|
|
63
|
+
إلى 19:00 فهي على مستوى الشبكة كلها ولا تُنشر كأوقات لكل خط.
|
|
59
64
|
تتضمن بيانات سيدي بلعباس قوائم الانطلاق الكاملة المنسوخة من HTML الرسمي المقدم، وتبقى أيام الخدمة غير المذكورة بقيمة `null`.
|
|
60
65
|
الشيفرة تحت [MIT](LICENSE)، والتفاصيل في [NOTICE](NOTICE).
|
|
61
66
|
|
package/README.fr.md
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@geoalgeria/buses)
|
|
10
10
|
[](https://www.npmjs.com/package/@geoalgeria/buses)
|
|
11
|
-
[](LICENSE)
|
|
12
12
|
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
|
-
Les **lignes** de bus urbains et suburbains d'Algérie. Cette version livre **
|
|
16
|
-
**76 tracés**, **128 directions** et **1 603 stations** pour
|
|
15
|
+
Les **lignes** de bus urbains et suburbains d'Algérie. Cette version livre **184 lignes**,
|
|
16
|
+
**76 tracés**, **128 directions** et **1 603 stations** pour 16 exploitants. En JSON,
|
|
17
17
|
CSV et GeoJSON. Fait partie de
|
|
18
18
|
[GeoAlgeria](https://github.com/yasserstudio/geoalgeria).
|
|
19
19
|
|
|
@@ -27,7 +27,7 @@ npm install @geoalgeria/buses
|
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
29
|
import buses from "@geoalgeria/buses";
|
|
30
|
-
const all = buses.lines(); //
|
|
30
|
+
const all = buses.lines(); // 184
|
|
31
31
|
const etusa = buses.linesByOperator("ETUSA"); // 76
|
|
32
32
|
const trace = buses.shapeForLine("etusa-1");
|
|
33
33
|
```
|
|
@@ -36,7 +36,7 @@ const trace = buses.shapeForLine("etusa-1");
|
|
|
36
36
|
|
|
37
37
|
| Jeu de données | Nombre | Notes |
|
|
38
38
|
| --- | --- | --- |
|
|
39
|
-
| Lignes | **
|
|
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 |
|
|
@@ -49,10 +49,18 @@ terminus n'est déduit automatiquement.
|
|
|
49
49
|
|
|
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
|
-
**© OpenStreetMap contributors**. Les faits de
|
|
52
|
+
**© OpenStreetMap contributors**. Les faits de 14 exploitants cités dans
|
|
53
53
|
[NOTICE](NOTICE) sont extraits de sources officielles sans licence ouverte déclarée ; les cartes Google de
|
|
54
|
-
Béjaïa, les schémas de M'Sila
|
|
55
|
-
|
|
54
|
+
Béjaïa, les schémas de M'Sila, les images de tracé de Sidi Bel Abbès et les graphiques
|
|
55
|
+
ETUS-C Constantine servent uniquement
|
|
56
|
+
à la validation et leur géométrie n'est pas redistribuée. Les 25 lignes de Constantine
|
|
57
|
+
sont transcrites de deux graphiques de l'exploitant fournis par le propriétaire du
|
|
58
|
+
projet et restent en annuaire seul, sans tracé, sans arrêts intermédiaires et sans horaires.
|
|
59
|
+
Les identités, terminus arabes et séquences d'arrêts ordonnées de Skikda viennent du site
|
|
60
|
+
de l'exploitant, lu dans un navigateur par le propriétaire du projet car le certificat TLS
|
|
61
|
+
du site avait expiré : les six lignes partent toutes de la place ساحة الشهداء au centre-ville,
|
|
62
|
+
`stops` porte la longueur de la séquence publiée, et la plage de service 06:00 à 19:00,
|
|
63
|
+
qui vaut pour le réseau entier, n'est pas publiée comme horaires par ligne. Les départs complets de Sidi
|
|
56
64
|
Bel Abbès sont transcrits du HTML officiel fourni par le propriétaire du projet ; les
|
|
57
65
|
jours non indiqués restent explicitement inconnus.
|
|
58
66
|
Le code est sous [MIT](LICENSE) ; voir [NOTICE](NOTICE).
|
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
# @geoalgeria/buses
|
|
4
4
|
|
|
5
|
-
Reviewed urban and suburban bus data for Algeria. This release contains **
|
|
6
|
-
from
|
|
5
|
+
Reviewed urban and suburban bus data for Algeria. This release contains **184 Lines**
|
|
6
|
+
from 16 Operators, **76 drawable shapes**, **128 Directions**, and **1,603 Stations**.
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
9
|
npm install @geoalgeria/buses
|
|
@@ -12,7 +12,7 @@ npm install @geoalgeria/buses
|
|
|
12
12
|
```js
|
|
13
13
|
import buses from "@geoalgeria/buses";
|
|
14
14
|
|
|
15
|
-
const lines = buses.lines(); //
|
|
15
|
+
const lines = buses.lines(); // 184
|
|
16
16
|
const shape = buses.shapeForLine("etusa-1");
|
|
17
17
|
const stops = buses.stationsByLine("etusa-1");
|
|
18
18
|
const directions = buses.directionsByLine("etusa-1");
|
|
@@ -23,11 +23,13 @@ const directions = buses.directionsByLine("etusa-1");
|
|
|
23
23
|
| Operator | Lines | Shapes |
|
|
24
24
|
| --- | ---: | ---: |
|
|
25
25
|
| ETUSA (Alger) | 76 | 61 |
|
|
26
|
+
| ETUS-C Constantine | 25 | 0 |
|
|
26
27
|
| ETUS Aïn Defla | 16 | 1 |
|
|
27
28
|
| ETUS Tlemcen | 10 | 0 |
|
|
28
29
|
| ETUS Sidi Bel Abbès | 8 | 0 |
|
|
29
30
|
| ETUS Tiaret | 7 | 7 |
|
|
30
31
|
| ETUS Annaba | 6 | 0 |
|
|
32
|
+
| ETUS Skikda | 6 | 0 |
|
|
31
33
|
| ETUSTO (Tizi Ouzou) | 5 | 3 |
|
|
32
34
|
| ETUS Béjaïa | 5 | 0 |
|
|
33
35
|
| ETUS Setif | 5 | 3 |
|
|
@@ -46,12 +48,12 @@ validation-only official geometry are not published as shapes.
|
|
|
46
48
|
|
|
47
49
|
## Files
|
|
48
50
|
|
|
49
|
-
- `data/lines.json` and `data/csv/lines.csv
|
|
50
|
-
- `data/shapes.json` and `data/geojson/shapes.geojson
|
|
51
|
-
- `data/directions.json
|
|
52
|
-
- `data/stations.json`, CSV and GeoJSON
|
|
53
|
-
- `data/station-memberships.json
|
|
54
|
-
- `data/operators.json
|
|
51
|
+
- `data/lines.json` and `data/csv/lines.csv`: 184 Lines
|
|
52
|
+
- `data/shapes.json` and `data/geojson/shapes.geojson`: 76 MultiLineString shapes
|
|
53
|
+
- `data/directions.json`: 128 source OSM Direction relations
|
|
54
|
+
- `data/stations.json`, CSV and GeoJSON: 1,603 Station nodes
|
|
55
|
+
- `data/station-memberships.json`: 2,685 ordered relation memberships
|
|
56
|
+
- `data/operators.json`: 16 Operators
|
|
55
57
|
|
|
56
58
|
Membership order is the raw OSM relation member order and carries
|
|
57
59
|
`sequence_status: "osm_member_order_unvalidated"`. It is **not** a validated passenger
|
|
@@ -71,12 +73,21 @@ includes the Overpass queries, retrieval interval, upstream response hashes, and
|
|
|
71
73
|
of the promoted selection, so regeneration is offline and reproducible.
|
|
72
74
|
|
|
73
75
|
ETUS Tiaret, ETUSTO, ETUS Béjaïa, ETUS M'Sila, ETUS Sidi Bel Abbès, ETUS Setif,
|
|
74
|
-
ETUS Aïn Defla, ETUS Annaba, ETUS Tlemcen, ETO Oran, ETUS Oum El Bouaghi,
|
|
75
|
-
ETUL Laghouat Line facts come from official
|
|
76
|
-
maps. Sidi Bel Abbès includes complete bidirectional
|
|
76
|
+
ETUS Aïn Defla, ETUS Annaba, ETUS Tlemcen, ETO Oran, ETUS Oum El Bouaghi,
|
|
77
|
+
ETUS-C Constantine, ETUS Skikda, and ETUL Laghouat Line facts come from official
|
|
78
|
+
Operator pages, APIs, programs, and maps. Sidi Bel Abbès includes complete bidirectional
|
|
77
79
|
departure lists from owner-supplied official HTML; the page did not state their service
|
|
78
|
-
days, so `days` remains `null`.
|
|
79
|
-
|
|
80
|
+
days, so `days` remains `null`. Constantine route identities and Arabic endpoints are transcribed from two
|
|
81
|
+
owner-supplied Operator graphics, a route list and a schematic network map; the 25
|
|
82
|
+
Lines are directory-only, with no shape, no intermediate Stations and no schedules.
|
|
83
|
+
Skikda identities, Arabic termini and complete ordered Arabic stop sequences come from
|
|
84
|
+
the Operator's own website, read in a browser by the project owner because the site
|
|
85
|
+
served an expired TLS certificate; all six Lines start at the city-centre square
|
|
86
|
+
ساحة الشهداء, `stops` carries the published sequence length, and the network-wide
|
|
87
|
+
06:00 to 19:00 service window is not published as per-Line service hours.
|
|
88
|
+
Béjaïa embedded maps, M'Sila route diagrams, Sidi Bel
|
|
89
|
+
Abbès route images, Setif announcement artwork and the Constantine graphics are
|
|
90
|
+
validation-only; their geometry is not redistributed.
|
|
80
91
|
The official source materials do not state an open reuse licence.
|
|
81
92
|
|
|
82
93
|
Package code is MIT. Data licences and attribution requirements are detailed in
|