mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 22:38:49 +00:00
Paris: Support cablecar
This commit is contained in:
parent
4566bf3cfb
commit
b741c0b34f
2 changed files with 11 additions and 0 deletions
|
@ -87,6 +87,11 @@ public class ParisProvider extends AbstractNavitiaProvider
|
||||||
// Bus + Noctilien
|
// Bus + Noctilien
|
||||||
return new Style(Shape.RECT, Style.parseColor(color), computeForegroundColor(color));
|
return new Style(Shape.RECT, Style.parseColor(color), computeForegroundColor(color));
|
||||||
}
|
}
|
||||||
|
case CABLECAR:
|
||||||
|
{
|
||||||
|
// Orlyval
|
||||||
|
return new Style(Shape.ROUNDED, Style.parseColor(color), computeForegroundColor(color));
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Unhandled product: " + product);
|
throw new IllegalArgumentException("Unhandled product: " + product);
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,6 +138,12 @@ public class ParisProviderLiveTest extends AbstractNavitiaProviderLiveTest
|
||||||
queryTrip("Campo Formio", "Gare St-Lazare");
|
queryTrip("Campo Formio", "Gare St-Lazare");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryTripCablecar() throws Exception
|
||||||
|
{
|
||||||
|
queryTrip("Campo Formio", "Aéroport Orly Sud");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void queryTripStations2() throws Exception
|
public void queryTripStations2() throws Exception
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue