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: - HSL Park and Ride (https://p.hsl.fi/docs/index.html) - ParkAPI (https://github.com/offenesdresden/ParkAPI) - KML (Keyhole Markup language) placemark parks. Use name as bike park name and point coordinates.

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: - type: this needs to be "vehicle-parking" - feedId: this is used as a "prefix" for park ids, entrance ids and sometimes also for tags.

To use HSL park updater:

{
    "type": "vehicle-parking",
    "sourceType": "hsl-park",
    "feedId": "hslpark",
    "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"
}

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",
    "frequencySec": 600,
    "url": "https://foo.bar",
    "headers": {"Cache-Control": "max-age=604800"},
    "tags": ["source:parkapi"]
}