mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 00:50:31 +00:00
Fix umlauts in autocompleted stations for Norway
This commit is contained in:
parent
3d2f4a6c6a
commit
4f45b6356a
2 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,8 @@ public class NriProvider extends AbstractHafasProvider
|
|||
public NriProvider()
|
||||
{
|
||||
super(API_BASE + "stboard.exe/on", API_BASE + "ajax-getstop.exe/ony", API_BASE + "query.exe/on", 8, null);
|
||||
|
||||
setJsonGetStopsEncoding(UTF_8);
|
||||
}
|
||||
|
||||
public NetworkId id()
|
||||
|
|
|
@ -74,6 +74,14 @@ public class NriProviderLiveTest extends AbstractProviderLiveTest
|
|||
print(autocompletes);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void autocompleteUmlaut() throws Exception
|
||||
{
|
||||
final List<Location> autocompletes = provider.autocompleteStations("Skøyen");
|
||||
|
||||
print(autocompletes);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shortTrip() throws Exception
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue