From b741c0b34f836f7d903ceffe8cc15ad0ee0de750 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Sun, 22 May 2016 14:07:57 -0300 Subject: [PATCH] Paris: Support cablecar --- enabler/src/de/schildbach/pte/ParisProvider.java | 5 +++++ .../test/de/schildbach/pte/live/ParisProviderLiveTest.java | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/enabler/src/de/schildbach/pte/ParisProvider.java b/enabler/src/de/schildbach/pte/ParisProvider.java index 330c77fe..59e3dd60 100644 --- a/enabler/src/de/schildbach/pte/ParisProvider.java +++ b/enabler/src/de/schildbach/pte/ParisProvider.java @@ -87,6 +87,11 @@ public class ParisProvider extends AbstractNavitiaProvider // Bus + Noctilien return new Style(Shape.RECT, Style.parseColor(color), computeForegroundColor(color)); } + case CABLECAR: + { + // Orlyval + return new Style(Shape.ROUNDED, Style.parseColor(color), computeForegroundColor(color)); + } default: throw new IllegalArgumentException("Unhandled product: " + product); } diff --git a/enabler/test/de/schildbach/pte/live/ParisProviderLiveTest.java b/enabler/test/de/schildbach/pte/live/ParisProviderLiveTest.java index fac8b266..2f159e78 100644 --- a/enabler/test/de/schildbach/pte/live/ParisProviderLiveTest.java +++ b/enabler/test/de/schildbach/pte/live/ParisProviderLiveTest.java @@ -138,6 +138,12 @@ public class ParisProviderLiveTest extends AbstractNavitiaProviderLiveTest queryTrip("Campo Formio", "Gare St-Lazare"); } + @Test + public void queryTripCablecar() throws Exception + { + queryTrip("Campo Formio", "AƩroport Orly Sud"); + } + @Test public void queryTripStations2() throws Exception {