Optionally disable sort by weight in JSON getstops (Hafas).

This commit is contained in:
Andreas Schildbach 2014-08-14 10:48:45 +02:00
parent c11a23ba08
commit 8adf98b98e
4 changed files with 23 additions and 2 deletions

View file

@ -100,6 +100,16 @@ public class BvgProviderLiveTest extends AbstractProviderLiveTest
Assert.assertEquals("Güntzelstr. (U)", result.getLocations().get(0).name);
}
@Test
public void suggestLocationsLocality() throws Exception
{
final SuggestLocationsResult result = provider.suggestLocations("seeling");
print(result);
Assert.assertEquals(new Location(LocationType.STATION, null, "Berlin", "Seelingstr."), result.getLocations().get(0));
}
@Test
public void suggestLocationsAddress() throws Exception
{