From 4034fb4b24c7ef6f8a0458bfff46049c6ebe4bd8 Mon Sep 17 00:00:00 2001 From: eskerda Date: Sat, 25 Nov 2023 04:48:28 +0100 Subject: [PATCH] add missing companies --- pybikes/data/controlnet.json | 3 ++- pybikes/data/gbfs.json | 34 ++++++++++++++++++++++++---------- pybikes/data/velib.json | 1 + pybikes/deutschebahn.py | 4 ++-- 4 files changed, 29 insertions(+), 13 deletions(-) diff --git a/pybikes/data/controlnet.json b/pybikes/data/controlnet.json index adc446434..d86467f64 100644 --- a/pybikes/data/controlnet.json +++ b/pybikes/data/controlnet.json @@ -7,7 +7,8 @@ "country": "AR", "name": "En la Bici", "latitude": -32.8895, - "longitude": -68.8433 + "longitude": -68.8433, + "company": ["Municipalidad de la Ciudad de Mendoza"] }, "feed_url": "https://enbici.ciudaddemendoza.gob.ar/bici2/mobile/EstacionesUsuarioWeb" } diff --git a/pybikes/data/gbfs.json b/pybikes/data/gbfs.json index 0290d31ed..718418720 100644 --- a/pybikes/data/gbfs.json +++ b/pybikes/data/gbfs.json @@ -586,7 +586,8 @@ "country":"NO", "name":"Bysykkel", "longitude":10.752245, - "city":"Oslo" + "city":"Oslo", + "company": ["Urban Sharing AS"] }, "feed_url": "https://gbfs.urbansharing.com/oslobysykkel.no/gbfs.json" }, @@ -597,7 +598,8 @@ "country":"NO", "name":"Bysykkel", "longitude":5.322054, - "city":"Bergen" + "city":"Bergen", + "company": ["Urban Sharing AS"] }, "feed_url": "https://gbfs.urbansharing.com/bergenbysykkel.no/gbfs.json" }, @@ -608,7 +610,8 @@ "country":"NO", "name":"Bysykkel", "longitude":10.3936781, - "city":"Trondheim" + "city":"Trondheim", + "company": ["Urban Sharing AS"] }, "feed_url": "https://gbfs.urbansharing.com/trondheimbysykkel.no/gbfs.json" }, @@ -722,7 +725,8 @@ "name": "Verona Bike", "country": "IT", "latitude": 45.438611, - "longitude": 10.992778 + "longitude": 10.992778, + "company": ["IGP S.p.A.", "Urban Sharing AS"] }, "feed_url": "https://gbfs.urbansharing.com/bikeverona.it/gbfs.json" }, @@ -823,7 +827,8 @@ "city": "Belfort", "name": "Optymo", "longitude": 6.849444, - "country": "FR" + "country": "FR", + "company": ["SMTC 90"] }, "feed_url": "https://belfort-gbfs.klervi.net/gbfs/gbfs.json" }, @@ -835,7 +840,8 @@ "city": "A Coruña", "latitude": 43.3623, "longitude": -8.4115, - "country": "ES" + "country": "ES", + "company": ["PBSC Urban Solutions"] }, "feed_url": "https://acoruna.publicbikesystem.net/customer/gbfs/v2/gbfs.json" }, @@ -846,7 +852,8 @@ "city": "Aachen", "name": "Velocity", "longitude": 6.083611, - "country": "DE" + "country": "DE", + "company": ["Velocity Region Aachen GmbH"] }, "feed_url": "https://nitro.openvelo.org/aachen/velocity/v2/gbfs.json" }, @@ -857,7 +864,8 @@ "city": "Québec", "name": "àVélo", "longitude": -71.2168, - "country": "CA" + "country": "CA", + "company": ["PBSC Urban Solutions"] }, "feed_url": "https://quebec.publicbikesystem.net/customer/gbfs/v2/gbfs.json" }, @@ -868,7 +876,8 @@ "city": "Saguenay", "name": "Accès Vélo", "longitude": -71.083333, - "country": "CA" + "country": "CA", + "company": ["PBSC Urban Solutions"] }, "feed_url": "https://saguenay.publicbikesystem.net/customer/gbfs/v2/gbfs.json", "force_https": "true" @@ -880,7 +889,12 @@ "city": "Cd de M\u00e9xico", "name": "EcoBici", "longitude": -99.133208, - "country": "MX" + "country": "MX", + "company": [ + "5M2 S.A. DE C.V.", + "BKT BICIPÚBLICA S.A. DE C.V.", + "Lyft Inc." + ] }, "feed_url": "https://gbfs.mex.lyftbikes.com/gbfs/gbfs.json" }, diff --git a/pybikes/data/velib.json b/pybikes/data/velib.json index 95d372ee0..923116d47 100644 --- a/pybikes/data/velib.json +++ b/pybikes/data/velib.json @@ -12,6 +12,7 @@ "name": "OPEN LICENCE 2.0", "url": "etalab.gouv.fr/wp-content/uploads/2018/11/open-licence.pdf" }, + "company": ["Smovengo"], "ebikes": true }, "feed_url": "https://velib-metropole-opendata.smoove.pro/opendata/Velib_Metropole/gbfs.json" diff --git a/pybikes/deutschebahn.py b/pybikes/deutschebahn.py index f94026251..6527e18e7 100644 --- a/pybikes/deutschebahn.py +++ b/pybikes/deutschebahn.py @@ -46,9 +46,9 @@ class Callabike(DB): # All networks within use the same data feed unifeed = True - meta = { + meta = dict({ 'name': 'Call-A-Bike', - } + }, ** DB.meta) provider = 'CallABike'