Vehicle Parking Updaters - OTP Sandbox Extension

Contact Info

Changelog

Documentation

This sandbox contains vehicle parking updaters. Unlike for some other sandbox features, this is not enabled/disabled through otp-config.json but from router-config.json updaters.

Currently contains the following updaters:

Configuration

These sandboxed vehicle parking updaters can be enabled by editing the updaters section in the router-config.json according to the following examples.

All updaters have the following parameters in common:

To use HSL park updater:

{
    "type": "vehicle-parking",
    "sourceType": "hsl-park",
    "feedId": "hslpark",
    "timeZone": "Europe/Helsinki",
    "facilitiesFrequencySec": 3600,
    "facilitiesUrl": "https://p.hsl.fi/api/v1/facilities.json?limit=-1",
    "utilizationsFrequencySec": 600,
    "utilizationsUrl": "https://p.hsl.fi/api/v1/utilizations.json?limit=-1",
    "hubsUrl": "https://p.hsl.fi/api/v1/hubs.json?limit=-1"
}

To use KML park updater:

{
    "type": "vehicle-parking",
    "sourceType": "kml",
    "feedId": "kml",
    "frequencySec": 600,
    "url": "https://foo.bar",
    "namePrefix": "foo",
    "zip": true
}

To use ParkAPI updater:

{
    "type": "vehicle-parking",
    "sourceType": "park-api",
    "feedId": "parkapi",
    "timeZone": "Europe/Berlin",
    "frequencySec": 600,
    "url": "https://foo.bar",
    "headers": {"Cache-Control": "max-age=604800"},
    "tags": ["source:parkapi"]
}