Skip to content

Commit

Permalink
Change digitrafficheaders
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Mar 15, 2024
1 parent 44cb1a5 commit 1f278b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const routers = {
mapSrc('tampere', 'http://ekstrat.tampere.fi/ekstrat/ptdata/tamperefeed_deprecated.zip'),
mapSrc('LINKKI', 'https://tvv.fra1.digitaloceanspaces.com/209.zip', true),
mapSrc('OULU', 'https://tvv.fra1.digitaloceanspaces.com/229.zip'),
mapSrc('digitraffic', 'https://rata.digitraffic.fi/api/v1/trains/gtfs-passenger-stops.zip', false, undefined, undefined, { headers: { 'Content-Encoding': 'gzip' } }),
mapSrc('digitraffic', 'https://rata.digitraffic.fi/api/v1/trains/gtfs-passenger-stops.zip', false, undefined, undefined, { headers: { 'Accept-Encoding': 'gzip' } }),
mapSrc('Rauma', 'http://digitransit-proxy:8080/out/raumaadmin.mattersoft.fi/feeds/233.zip'),
mapSrc('Hameenlinna', 'https://tvv.fra1.digitaloceanspaces.com/203.zip', true),
mapSrc('Kotka', 'https://tvv.fra1.digitaloceanspaces.com/217.zip', true),
Expand Down Expand Up @@ -84,7 +84,7 @@ const routers = {
mapSrc('LINKKI', 'https://tvv.fra1.digitaloceanspaces.com/209.zip', true),
mapSrc('tampere', 'http://ekstrat.tampere.fi/ekstrat/ptdata/tamperefeed_deprecated.zip'),
mapSrc('Rovaniemi', 'https://tvv.fra1.digitaloceanspaces.com/237.zip', true),
mapSrc('digitraffic', 'https://rata.digitraffic.fi/api/v1/trains/gtfs-passenger-stops.zip', false, undefined, undefined, { headers: { 'Content-Encoding': 'gzip' } }),
mapSrc('digitraffic', 'https://rata.digitraffic.fi/api/v1/trains/gtfs-passenger-stops.zip', false, undefined, undefined, { headers: { 'Accept-Encoding': 'gzip' } }),
mapSrc('tampereDRT', 'https://ekstrat.tampere.fi/ekstrat/ptdata/tamperefeed_kutsuliikenne.zip'),
mapSrc('Pori', 'https://tvv.fra1.digitaloceanspaces.com/231.zip', true),
mapSrc('FUNI', 'https://foligtfs.blob.core.windows.net/routeplanner/gtfs-foli-ff.zip', true),
Expand Down
5 changes: 4 additions & 1 deletion waltti/router-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@
"url": "http://digitransit-proxy:8080/out/rata.digitraffic.fi/api/v1/trains/gtfs-rt-updates",
"feedId": "digitraffic",
"fuzzyTripMatching": false,
"backwardsDelayPropagationType": "ALWAYS"
"backwardsDelayPropagationType": "ALWAYS",
"headers": {
"accept-encoding": "gzip"
}
},
{
"id": "foli-trip-updates",
Expand Down

0 comments on commit 1f278b1

Please sign in to comment.