mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 09:29:49 +00:00
fixed encoding for Europe
This commit is contained in:
parent
af99124c18
commit
3c42777247
2 changed files with 11 additions and 1 deletions
|
@ -36,7 +36,7 @@ public class RtProvider extends AbstractHafasProvider
|
||||||
|
|
||||||
public RtProvider()
|
public RtProvider()
|
||||||
{
|
{
|
||||||
super(API_BASE + "query.exe/dn", 10, null);
|
super(API_BASE + "query.exe/dn", 10, null, "UTF-8", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public NetworkId id()
|
public NetworkId id()
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
package de.schildbach.pte.live;
|
package de.schildbach.pte.live;
|
||||||
|
|
||||||
|
import static junit.framework.Assert.assertEquals;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -81,6 +83,14 @@ public class RtProviderLiveTest extends AbstractProviderLiveTest
|
||||||
print(autocompletes);
|
print(autocompletes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void autoCompleteEncoding() throws Exception
|
||||||
|
{
|
||||||
|
List<Location> autocompletes = provider.autocompleteStations("Dorfstrasse 1, Schäftland");
|
||||||
|
assertEquals("Schöftland, Dorfstrasse", autocompletes.get(0).name);
|
||||||
|
print(autocompletes);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shortConnection() throws Exception
|
public void shortConnection() throws Exception
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue