fix local autocompletes for Munich

This commit is contained in:
Andreas Schildbach 2013-04-16 12:09:42 +02:00
parent c8ac98f710
commit 261af7743e
2 changed files with 15 additions and 0 deletions

View file

@ -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()

View file

@ -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
{ {