mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
Hafas: Use setters for non-standard character encodings, rather than the constructor parameter.
This commit is contained in:
parent
27f60db22b
commit
10d04bcb39
16 changed files with 53 additions and 26 deletions
|
@ -40,9 +40,11 @@ public class VbbProvider extends AbstractHafasProvider
|
|||
|
||||
public VbbProvider()
|
||||
{
|
||||
super(NetworkId.VBB, API_BASE + "stboard.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", PRODUCTS_MAP, Charsets.UTF_8);
|
||||
super(NetworkId.VBB, API_BASE + "stboard.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", PRODUCTS_MAP);
|
||||
|
||||
setJsonGetStopsUseWeight(false);
|
||||
setJsonGetStopsEncoding(Charsets.UTF_8);
|
||||
setJsonNearbyLocationsEncoding(Charsets.UTF_8);
|
||||
}
|
||||
|
||||
private static final Pattern P_SPLIT_NAME_SU = Pattern.compile("(.*?)(?:\\s+\\((S|U|S\\+U)\\))?");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue