mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 00:09:55 +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)
|
||||
{
|
||||
super(apiBase);
|
||||
|
||||
setIncludeRegionId(false);
|
||||
}
|
||||
|
||||
public NetworkId id()
|
||||
|
|
|
@ -93,6 +93,19 @@ public class MvvProviderLiveTest extends AbstractProviderLiveTest
|
|||
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
|
||||
public void shortConnection() throws Exception
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue