-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and additionally: * read available pricing plans from config instead of subclasses * remove currently unnecessary CantamenIXSIProvider subclasses * cast CANTAMEN_IXSI_API_TIMEOUT to int --------- Co-authored-by: Thorsten Fröhlinghaus <[email protected]>
- Loading branch information
1 parent
3a8f227
commit 6a6f79c
Showing
4 changed files
with
273 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,242 @@ | ||
{ | ||
"feed_data": { | ||
"pricing_plans": [ | ||
{ | ||
"currency": "EUR", | ||
"description": "Classik-Tarif: 1,40€/h. Nachtpreis zwischen 0h und 7h: 0€. 0,25€/km bis 100km, danach 0,23€/km. Zuzüglich Grundgebühr. Alle Angaben ohne Gewähr.", | ||
"is_taxable": false, | ||
"name": "A Toyota Aygo", | ||
"per_min_pricing": [ | ||
{ | ||
"start": 0, | ||
"end": 1020, | ||
"interval": 60, | ||
"rate": 1.40 | ||
}, | ||
{ | ||
"start": 1020, | ||
"end": 1440, | ||
"interval": 60, | ||
"rate": 0 | ||
} | ||
], | ||
"per_km_pricing": [ | ||
{ | ||
"start": 0, | ||
"end": 100, | ||
"interval": 1, | ||
"rate": 0.25 | ||
}, | ||
{ | ||
"start": 100, | ||
"interval": 1, | ||
"rate": 0.23 | ||
} | ||
], | ||
"plan_id": "mini", | ||
"price": 0, | ||
"url": "https://stuttgart.stadtmobil.de/media/user_upload/downloads_privatkunden/stuttgart/Tarifordnung_05_2022.pdf" | ||
}, | ||
{ | ||
"currency": "EUR", | ||
"description": "Classik-Tarif: 2,20€/h. Nachtpreis zwischen 0h und 7h: 0€. 0,27€/km bis 100km, danach 0,24€/km bis 700km, danach 0,21€/km. Zuzüglich Grundgebühr. Alle Angaben ohne Gewähr.", | ||
"is_taxable": false, | ||
"name": "B Opel Corsa, Opel Corsa (Elektro), Opel Adam, Renault ZOE (Elektro), Toyota Yaris Hybrid, Opel Cargo Kastenwagen, Renault Kangoo Kastenwagen", | ||
"per_min_pricing": [ | ||
{ | ||
"start": 0, | ||
"end": 1020, | ||
"interval": 60, | ||
"rate": 2.20 | ||
}, | ||
{ | ||
"start": 1020, | ||
"end": 1440, | ||
"interval": 60, | ||
"rate": 0 | ||
} | ||
], | ||
"per_km_pricing": [ | ||
{ | ||
"start": 0, | ||
"end": 100, | ||
"interval": 1, | ||
"rate": 0.27 | ||
}, | ||
{ | ||
"start": 100, | ||
"end": 700, | ||
"interval": 1, | ||
"rate": 0.24 | ||
}, | ||
{ | ||
"start": 700, | ||
"interval": 1, | ||
"rate": 0.21 | ||
} | ||
], | ||
"plan_id": "small", | ||
"price": 0, | ||
"url": "https://stuttgart.stadtmobil.de/media/user_upload/downloads_privatkunden/stuttgart/Tarifordnung_05_2022.pdf" | ||
}, | ||
{ | ||
"currency": "EUR", | ||
"description": "Classik-Tarif: 2,80€/h. Nachtpreis zwischen 0h und 7h: 0€. 0,31€/km bis 100km, danach 0,26€/km bis 700km, danach 0,22€/km. Zuzüglich Grundgebühr. Alle Angaben ohne Gewähr.", | ||
"is_taxable": false, | ||
"name": "C Opel Astra Kombi, Toyota Auris/Corolla Kombi Hybrid, Opel Life Hochdachkombi", | ||
"per_min_pricing": [ | ||
{ | ||
"start": 0, | ||
"end": 1020, | ||
"interval": 60, | ||
"rate": 2.80 | ||
}, | ||
{ | ||
"start": 1020, | ||
"end": 1440, | ||
"interval": 60, | ||
"rate": 0 | ||
} | ||
], | ||
"per_km_pricing": [ | ||
{ | ||
"start": 0, | ||
"end": 100, | ||
"interval": 1, | ||
"rate": 0.31 | ||
}, | ||
{ | ||
"start": 100, | ||
"end": 700, | ||
"interval": 1, | ||
"rate": 0.26 | ||
}, | ||
{ | ||
"start": 700, | ||
"interval": 1, | ||
"rate": 0.22 | ||
} | ||
], | ||
"plan_id": "medium", | ||
"price": 0, | ||
"url": "https://stuttgart.stadtmobil.de/media/user_upload/downloads_privatkunden/stuttgart/Tarifordnung_05_2022.pdf" | ||
}, | ||
{ | ||
"currency": "EUR", | ||
"description": "Classik-Tarif: 3,20€/h. Nachtpreis zwischen 0h und 7h: 1,00€. 0,34€/km bis 100km, danach 0,30€/km. Zuzüglich Grundgebühr. Alle Angaben ohne Gewähr.", | ||
"is_taxable": false, | ||
"name": "D BMW 216d Active Tourer Opel Zafira Kleinbus, Ford Custom Kleinbus, Renault Trafic (8-Sitzer), Renault Trafic (9-Sitzer", | ||
"per_min_pricing": [ | ||
{ | ||
"start": 0, | ||
"end": 1020, | ||
"interval": 60, | ||
"rate": 3.20 | ||
}, | ||
{ | ||
"start": 1020, | ||
"end": 1440, | ||
"interval": 60, | ||
"rate": 1.00 | ||
} | ||
], | ||
"per_km_pricing": [ | ||
{ | ||
"start": 0, | ||
"end": 100, | ||
"interval": 1, | ||
"rate": 0.34 | ||
}, | ||
{ | ||
"start": 100, | ||
"interval": 1, | ||
"rate": 0.30 | ||
} | ||
], | ||
"plan_id": "van", | ||
"price": 0, | ||
"url": "https://stuttgart.stadtmobil.de/media/user_upload/downloads_privatkunden/stuttgart/Tarifordnung_05_2022.pdf" | ||
}, | ||
{ | ||
"currency": "EUR", | ||
"description": "Classik-Tarif: 4,20€/h. Nachtpreis zwischen 0h und 7h: 2,00€. 0,38€/km bis 100km, danach 0,32€/km. Zuzüglich Grundgebühr. Alle Angaben ohne Gewähr.", | ||
"is_taxable": false, | ||
"name": "F Ford Transit Transporter", | ||
"per_min_pricing": [ | ||
{ | ||
"start": 0, | ||
"end": 1020, | ||
"interval": 60, | ||
"rate": 4.20 | ||
}, | ||
{ | ||
"start": 1020, | ||
"end": 1440, | ||
"interval": 60, | ||
"rate": 2.00 | ||
} | ||
], | ||
"per_km_pricing": [ | ||
{ | ||
"start": 0, | ||
"end": 100, | ||
"interval": 1, | ||
"rate": 0.38 | ||
}, | ||
{ | ||
"start": 100, | ||
"interval": 1, | ||
"rate": 0.32 | ||
} | ||
], | ||
"plan_id": "transporter", | ||
"price": 0, | ||
"url": "https://stuttgart.stadtmobil.de/media/user_upload/downloads_privatkunden/stuttgart/Tarifordnung_05_2022.pdf" | ||
} | ||
], | ||
"system_information": { | ||
"email": "[email protected]", | ||
"feed_contact_email": "[email protected]", | ||
"language": "de", | ||
"license_url": "https://www.govdata.de/dl-de/by-2-0", | ||
"license_id": "DL-DE-BY-2.0", | ||
"attribution_organization_name": "stadtmobil carsharing AG", | ||
"attribution_url": "https://stuttgart.stadtmobil.de/", | ||
"name": "Stadtmobil Stuttgart", | ||
"operator": "stadtmobil carsharing AG", | ||
"phone_number": "+49 (0)711 - 94 54 36 36", | ||
"privacy_url": "https://stuttgart.stadtmobil.de/datenschutz/", | ||
"purchase_url": "https://stuttgart.stadtmobil.de/privatkunden/kunde-werden/", | ||
"rental_apps": { | ||
"android": { | ||
"discovery_uri": "cantamen-interapp-csd://add_booking", | ||
"store_uri": "https://play.google.com/store/apps/details?id=de.cantamen.carsharing.deutschland" | ||
}, | ||
"ios": { | ||
"discovery_uri": "cantamen-interapp-csd://add_booking", | ||
"store_uri": "https://apps.apple.com/de/app/carsharing-deutschland/id1075669223" | ||
} | ||
}, | ||
"system_id": "stadtmobil_stuttgart", | ||
"terms_last_updated": "2020-02-01", | ||
"terms_url": "https://stuttgart.stadtmobil.de/agb/", | ||
"timezone": "Europe/Berlin", | ||
"url": "https://stuttgart.stadtmobil.de/", | ||
"_feed_notice": "Keine Echtzeitdaten zum Buchungsstatus der Fahrzeuge. Verfügbarkeit ist im Buchungssystem des Anbieters sichtbar." | ||
} | ||
}, | ||
"system_id": "10024", | ||
"provider_id": 3, | ||
"url_templates": { | ||
"station": { | ||
"android": "cantamen-interapp-csd://add_booking?openPlace={placeId}", | ||
"ios": "cantamen-interapp-csd://add_booking?openPlace={placeId}", | ||
"web": "https://ewi3.cantamen.de/?openPlace={placeId}" | ||
}, | ||
"vehicle": { | ||
"android": "cantamen-interapp-csd://add_booking?openBookee={bookeeId}", | ||
"ios": "cantamen-interapp-csd://add_booking?openBookee={bookeeId}", | ||
"web": "https://ewi3.cantamen.de/?openBookee={bookeeId}" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters