mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 10:49:50 +00:00
Disable sort by weight in JSON getstops for Brandenburg.
This commit is contained in:
parent
2be10d8bbf
commit
32ceccedb8
2 changed files with 12 additions and 0 deletions
|
@ -45,6 +45,8 @@ public class VbbProvider extends AbstractHafasProvider
|
|||
public VbbProvider()
|
||||
{
|
||||
super(API_BASE + "stboard.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", 7, UTF_8);
|
||||
|
||||
setJsonGetStopsUseWeight(false);
|
||||
}
|
||||
|
||||
public NetworkId id()
|
||||
|
|
|
@ -86,6 +86,16 @@ public class VbbProviderLiveTest extends AbstractProviderLiveTest
|
|||
assertEquals(QueryDeparturesResult.Status.INVALID_STATION, resultPlan.status);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestLocations() throws Exception
|
||||
{
|
||||
final SuggestLocationsResult result = provider.suggestLocations("Haubachstr.");
|
||||
|
||||
print(result);
|
||||
|
||||
Assert.assertEquals("Haubachstr.", result.getLocations().get(0).name);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void suggestLocationsUmlaut() throws Exception
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue