Skip to content

Commit

Permalink
👽️ Change back to previous widths for parsing stations
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed May 27, 2024
1 parent 6aa48c3 commit bb1f55a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper/src/loadStations.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ module.exports = async function loadStations (baseMinYear) {
const raw = (await got(url, { encoding: 'latin1' })).body;
const stations = parseFixedWidth(raw, {
// The format was changed sometime between 2024-04-15 and 2024-05-01
//skip: 3,
//widths: [5, 9, 9, 15, 12, 10, 42, 22],
// ...and changed back again.
//widths: [21, 9, 9, 14, 12, 10, 81, 843],
skip: 2,
widths: [21, 9, 9, 14, 12, 10, 81, 843],
widths: [5, 9, 9, 15, 12, 10, 42, 22],
names: ['id', 'from', 'to', 'altitude', 'lat', 'lon', 'name', 'state'],
})
.map(station => ({
Expand Down

0 comments on commit bb1f55a

Please sign in to comment.