mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
fix local autocompletes for Munich
This commit is contained in:
parent
c8ac98f710
commit
261af7743e
2 changed files with 15 additions and 0 deletions
|
@ -39,6 +39,8 @@ public class MvvProvider extends AbstractEfaProvider
|
||||||
public MvvProvider(final String apiBase)
|
public MvvProvider(final String apiBase)
|
||||||
{
|
{
|
||||||
super(apiBase);
|
super(apiBase);
|
||||||
|
|
||||||
|
setIncludeRegionId(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public NetworkId id()
|
public NetworkId id()
|
||||||
|
|
|
@ -93,6 +93,19 @@ public class MvvProviderLiveTest extends AbstractProviderLiveTest
|
||||||
print(autocompletes);
|
print(autocompletes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autocompleteLocal() throws Exception
|
||||||
|
{
|
||||||
|
final List<Location> autocompletesHirschgarten = provider.autocompleteStations("Hirschgarten");
|
||||||
|
assertEquals("München", autocompletesHirschgarten.get(0).place);
|
||||||
|
|
||||||
|
final List<Location> autocompletesOstbahnhof = provider.autocompleteStations("Ostbahnhof");
|
||||||
|
assertEquals("München", autocompletesOstbahnhof.get(0).place);
|
||||||
|
|
||||||
|
final List<Location> autocompletesMarienplatz = provider.autocompleteStations("Marienplatz");
|
||||||
|
assertEquals("München", autocompletesMarienplatz.get(0).place);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue