mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
Optionally disable sort by weight in JSON getstops (Hafas).
This commit is contained in:
parent
c11a23ba08
commit
8adf98b98e
4 changed files with 23 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue