mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 17:39:49 +00:00
ZVV: update API endpoint
This commit is contained in:
parent
3c953a696c
commit
81b1122204
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,7 @@ public class ZvvProvider extends AbstractHafasClientInterfaceProvider {
|
|||
private static final Product[] PRODUCTS_MAP = { Product.HIGH_SPEED_TRAIN, Product.REGIONAL_TRAIN,
|
||||
Product.REGIONAL_TRAIN, Product.REGIONAL_TRAIN, Product.FERRY, Product.SUBURBAN_TRAIN, Product.BUS,
|
||||
Product.CABLECAR, Product.BUS, Product.TRAM };
|
||||
private static final HttpUrl API_BASE = HttpUrl.parse("https://online.fahrplan.zvv.ch/bin/");
|
||||
private static final HttpUrl API_BASE = HttpUrl.parse("https://online.fahrplan.zvv.ch/");
|
||||
private static final String DEFAULT_API_CLIENT = "{\"id\":\"ZVV\",\"type\":\"AND\"}";
|
||||
|
||||
public ZvvProvider(final String apiAuthorization) {
|
||||
|
@ -46,6 +46,7 @@ public class ZvvProvider extends AbstractHafasClientInterfaceProvider {
|
|||
|
||||
public ZvvProvider(final String apiClient, final String apiAuthorization) {
|
||||
super(NetworkId.ZVV, API_BASE, PRODUCTS_MAP);
|
||||
setApiEndpoint("gate");
|
||||
setApiVersion("1.15");
|
||||
setApiExt("ZVV.2");
|
||||
setApiClient(apiClient);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue