Compare commits

..

68 Commits

Author SHA1 Message Date
02f05487f9 pis-manual-fixes (#95)
All checks were successful
Generate Release / validate_and_release (push) Successful in 10s
Reviewed-on: #95
2024-11-13 00:20:35 +00:00
337029dea8 Fix PIS related issues
All checks were successful
Generate Release / validate_and_release (push) Successful in 15s
2024-11-13 00:19:18 +00:00
dea96ef8a2 Ensure action runs on pis-* branches. 2024-11-13 00:12:07 +00:00
8b6c642883 Create new PIS File (#92)
All checks were successful
Generate Release / validate_and_release (push) Successful in 9s
Co-authored-by: OwlBot <bonifacefj@gmail.com>
Co-authored-by: owlbot <owlbot@owlboard.info>
Reviewed-on: #92
2024-11-12 11:52:02 +00:00
aa81409944 Fix errournous duplicates
All checks were successful
Generate Release / validate_and_release (push) Successful in 10s
2024-11-12 11:46:39 +00:00
dd3fd76dbc auto-dgp2-2024-11-11_09-55-58 (#70)
All checks were successful
Generate Release / validate_and_release (push) Successful in 11s
Reviewed-on: #70
2024-11-12 11:29:53 +00:00
0abc76cd5a Change instances of 'WOP' to 'WPH'. WOP refers to Worcestershire Parkway low level.
All checks were successful
Generate Release / validate_and_release (push) Successful in 11s
2024-11-12 11:28:29 +00:00
owlbot
82cc604817 Sort & Merge PIS Files 2024-11-12 11:27:30 +00:00
443e754659 Fix format
All checks were successful
Generate Release / validate_and_release (push) Successful in 15s
2024-11-12 11:27:12 +00:00
04e50dd9ed Fix file format
All checks were successful
Generate Release / validate_and_release (push) Successful in 18s
2024-11-12 11:23:13 +00:00
236d357663 Manual verification on 166219
All checks were successful
Generate Release / validate_and_release (push) Successful in 17s
2024-11-11 19:52:01 +00:00
a361f89275 Fix mis-matches involving WMN and WNM
Some checks failed
Generate Release / validate_and_release (push) Failing after 8s
2024-11-11 10:43:51 +00:00
4f683455f6 Closes #76
Some checks failed
Generate Release / validate_and_release (push) Failing after 9s
2024-11-11 10:32:25 +00:00
5a93832f81 Close: #89
Some checks failed
Generate Release / validate_and_release (push) Failing after 9s
2024-11-11 10:27:55 +00:00
c7f65df091 Will require further checks
Some checks failed
Generate Release / validate_and_release (push) Failing after 8s
2024-11-11 10:09:10 +00:00
a9cb0897ef Closes #62 2024-11-11 10:09:10 +00:00
c1d9452857 Closes #63 2024-11-11 10:09:10 +00:00
fb13501326 Closes #64 2024-11-11 10:09:10 +00:00
19a90adccb Closes #65 2024-11-11 10:09:10 +00:00
fbed314359 Closes #68 2024-11-11 10:09:10 +00:00
7022d23709 Create new PIS File 2024-11-11 10:09:10 +00:00
091e136ac6 auto-legacy-dgp (#69)
Some checks are pending
Generate Release / validate_and_release (push) Waiting to run
Reviewed-on: #69
2024-11-11 09:59:26 +00:00
1ef727df52 Delete pis/dg-additions.yaml
All checks were successful
Generate Release / validate_and_release (push) Successful in 11s
2024-11-11 09:58:40 +00:00
owlbot
51e7b533aa Sort & Merge PIS Files 2024-11-11 09:58:06 +00:00
cbffbc76be diagram-parser additions from driver schedulec ards
All checks were successful
Generate Release / validate_and_release (push) Successful in 16s
2024-11-11 09:53:32 +00:00
dce6f40a12 toc-patching (#61)
Some checks are pending
Generate Release / validate_and_release (push) Waiting to run
Reviewed-on: #61
2024-11-10 19:08:59 +00:00
80762ad3c9 adjust match for removing automatically generated files 2024-11-10 19:06:29 +00:00
173042d741 Adjust 'toc' value for HEx services 2024-11-10 19:05:46 +00:00
fa74bc5fec Remove merged file 2024-11-10 19:04:51 +00:00
fbfb97f71f Only add 'toc' if not already defined 2024-11-10 19:04:27 +00:00
5e0de0065b auto-dgp2-2024-11-02_21-08-59 (#60)
All checks were successful
Generate Release / validate_and_release (push) Successful in 11s
Merge verified codes to main.

Co-authored-by: OwlBot <bonifacefj@gmail.com>
Reviewed-on: #60
2024-11-10 17:48:46 +00:00
17e0a70de5 Update merge script to handle files from dgp2
All checks were successful
Generate Release / validate_and_release (push) Successful in 9s
2024-11-02 21:14:18 +00:00
9a2d739189 Fix Devonport - was entered as DVP, should have been DPT
Some checks are pending
Generate Release / validate_and_release (push) Waiting to run
2024-11-02 19:32:22 +00:00
3c752caeb9 Closes:
All checks were successful
Generate Release / validate_and_release (push) Successful in 11s
- #20
  - #21
 - #22
 - #23
 - #26
 - #27
 - #29
2024-11-02 19:29:45 +00:00
a3f68176b7 Closes #28
All checks were successful
Generate Release / validate_and_release (push) Successful in 18s
2024-11-02 19:25:31 +00:00
81ea75c31d Add pis/dgp-manual-yet-again.yaml (#19)
All checks were successful
Generate Release / validate_and_release (push) Successful in 11s
Co-authored-by: owlbot <owlbot@owlboard.info>
Reviewed-on: #19
2024-10-31 23:36:07 +00:00
94c31a34f8 Delete pis/dg-manual-again.yaml
All checks were successful
Generate Release / validate_and_release (push) Successful in 10s
2024-10-30 15:33:55 +00:00
ba7dc57b46 manual-additions-from-dgp (#18)
All checks were successful
Generate Release / validate_and_release (push) Successful in 12s
Co-authored-by: owlbot <owlbot@owlboard.info>
Reviewed-on: #18
2024-10-30 15:30:40 +00:00
d4f1cd6c9b auto-manual-addition (#17)
All checks were successful
Generate Release / validate_and_release (push) Successful in 10s
Co-authored-by: owlbot <owlbot@owlboard.info>
Reviewed-on: #17
2024-10-25 21:50:23 +01:00
b4d992414e auto-fixing (#16)
All checks were successful
Generate Release / validate_and_release (push) Successful in 12s
Co-authored-by: owlbot <owlbot@owlboard.info>
Reviewed-on: #16
2024-10-24 21:10:38 +01:00
0c159e121b Adjust merge script to add "gw" as TOC
All checks were successful
Generate Release / validate_and_release (push) Successful in 16s
2024-10-24 20:55:10 +01:00
93726137aa auto-20240722-150645 (#14)
All checks were successful
Generate Release / validate_and_release (push) Successful in 15s
Co-authored-by: owlbot <owlbot@owlboard.info>
Reviewed-on: #14
2024-07-24 13:06:21 +01:00
71a5647146 auto-20240712-112351 (#13)
All checks were successful
Generate Release / validate_and_release (push) Successful in 21s
Reviewed-on: #13
2024-07-12 11:33:46 +01:00
owlbot
0562c3bcb3 Sort & Merge PIS Files 2024-07-12 10:31:03 +00:00
96aa5ef9c0 Reviewed changes
All checks were successful
Generate Release / validate_and_release (push) Successful in 36s
2024-07-12 11:30:29 +01:00
77125dfda0 From owlbot diagram-parser
Some checks failed
Generate Release / validate_and_release (push) Failing after 3m10s
2024-07-12 11:25:15 +01:00
8e14964e43 Remove autoPR from automation as it is not working
All checks were successful
Generate Release / validate_and_release (push) Successful in 16s
2024-07-06 11:38:56 +01:00
3f6b728ebc Remove auto file 2024-07-06 11:38:21 +01:00
ed619461e5 Merge new codes into main file.
All checks were successful
Generate Release / validate_and_release (push) Successful in 36s
2024-07-06 11:36:53 +01:00
e26c2ed7a0 auto-20240706-113231 (#12)
All checks were successful
Generate Release / validate_and_release (push) Successful in 20s
Reviewed-on: #12
2024-07-06 11:34:47 +01:00
owlbot
ea4ec2e34f Sort & Merge PIS Files 2024-07-06 10:32:16 +00:00
6ba95bb5b4 Update pis/auto-20240706-145015.yaml
Some checks failed
Generate Release / validate_and_release (push) Failing after 35s
2024-07-06 11:31:24 +01:00
c7e21c80fe Add pis/auto-20240706-145015 2024-07-06 11:25:00 +01:00
caa07f840c Update knowledgebase data
All checks were successful
Generate Release / validate_and_release (push) Successful in 13s
2024-07-01 16:26:25 +01:00
0d7763c58d Fix coordinates
All checks were successful
Generate Release / validate_and_release (push) Successful in 10s
2024-06-29 21:21:17 +01:00
c743347d28 Update knowledgebase additional stations
All checks were successful
Generate Release / validate_and_release (push) Successful in 13s
2024-06-29 21:15:39 +01:00
62bade5653 Add additional locations to supplement Knowledgebase data - INCOMPLETE
All checks were successful
Generate Release / validate_and_release (push) Successful in 16s
2024-06-28 21:21:06 +01:00
6f9a71abe7 auto-20240502-120200 (#10)
All checks were successful
Generate Release / validate_and_release (push) Successful in 14s
Reviewed-on: #10
2024-05-02 12:21:02 +01:00
owlbot
cd681c1218 Sort & Merge PIS Files 2024-05-02 11:10:34 +00:00
fe44163de9 Review
Some checks failed
Generate Release / validate_and_release (push) Failing after 36s
2024-05-02 12:10:04 +01:00
7a7f488e03 From owlbot diagram-parser
Some checks failed
Generate Release / validate_and_release (push) Failing after 17s
2024-05-02 12:02:58 +01:00
owlbot
114c827c13 Sort & Merge PIS Files
All checks were successful
Generate Release / validate_and_release (push) Successful in 9s
2024-04-24 12:41:15 +00:00
5263c7115b From owlbot diagram-parser
All checks were successful
Generate Release / validate_and_release (push) Successful in 28s
2024-04-24 13:40:50 +01:00
owlbot
35c27842b1 Sort & Merge PIS Files
All checks were successful
Generate Release / validate_and_release (push) Successful in 11s
2024-04-19 14:15:41 +00:00
686107015c Verify remaining codes
All checks were successful
Generate Release / validate_and_release (push) Successful in 24s
Comments added to explain how verification was completed
2024-04-19 15:15:27 +01:00
def693696a Update pis/dg_parser_20240419-144511.yaml
Some checks failed
Generate Release / validate_and_release (push) Failing after 13s
Comments added to describe verification methods
2024-04-19 15:03:26 +01:00
759ae2b745 Update pis/dg_parser_20240419-144511.yaml
Some checks failed
Generate Release / validate_and_release (push) Failing after 12s
2024-04-19 15:01:47 +01:00
b502f88c29 From owlbot diagram-parser
Some checks failed
Generate Release / validate_and_release (push) Failing after 58s
2024-04-19 14:46:16 +01:00
4 changed files with 2626 additions and 123 deletions

View File

@ -6,6 +6,7 @@ on:
branches: branches:
- auto-* - auto-*
- workflow_update - workflow_update
- pis-*
jobs: jobs:
validate_and_release: validate_and_release:
@ -32,13 +33,3 @@ jobs:
commit_user_name: owlbot commit_user_name: owlbot
commit_user_email: owlbot@owlboard.info commit_user_email: owlbot@owlboard.info
commit_author: owlbot <owlbot@owlboard.info> commit_author: owlbot <owlbot@owlboard.info>
- name: Create PR
uses: https://github.com/peter-evans/create-pull-request@v6
with:
token: ${{ secrets.OWLBOT_KEY }}
committer: OwlBot <owlbot@owlboard.info>
signoff: true
title: Merge Changes
reviewers: fred.boniface
branch: main

View File

@ -0,0 +1,449 @@
<?xml version="1.0", encoding="utf-8"?>
<!-- Contains stations which are included in LDBSVWS but not in
knowledgebase, such as ferry terminals with departure data
but no train services.
The data here is formatted such that it can be appended to
knowledgebase stations data while it is being parsed.
The combined output can be used to validate requests to
LDBSVWS (or the public version) to reduce API requests
that will return no data
Only a subset of the information included in the knowledgebase
is included for these locations
-->
<StationList>
<Station>
<CrsCode>YMH</CrsCode>
<Name>Yarmouth (Isle of Wight)</Name>
<SixteenCharacterName>YARMOUTH IOW</SixteenCharacterName>
<Longitude>-1.500656</Longitude>
<Latitude>50.706512</Latitude>
</Station>
<Station>
<CrsCode>RTY</CrsCode>
<Name>Rothesay, Bute (Ferry/Bus)</Name>
<SixteenCharacterName>Rothesay Bute</SixteenCharacterName>
<Longitude>-5.054006</Longitude>
<Latitude>55.838897</Latitude>
</Station>
<Station>
<CrsCode>BFA</CrsCode>
<Name>Belfast Port</Name>
<SixteenCharacterName>BELFAST PORT</SixteenCharacterName>
<Longitude>-5.889967</Longitude>
<Latitude>54.628623</Latitude>
</Station>
<Station>
<CrsCode>CRP</CrsCode>
<Name>Cairnryan Port</Name>
<SixteenCharacterName>Cairnryan Port</SixteenCharacterName>
<Longitude>-5.036245</Longitude>
<Latitude>54.985075</Latitude>
</Station>
<Station>
<CrsCode>DPS</CrsCode>
<Name>Dublin Port (Stena)</Name>
<SixteenCharacterName>Dublin Stena</SixteenCharacterName>
<Longitude>-6.196574</Longitude>
<Latitude>53.344992</Latitude>
</Station>
<Station>
<CrsCode>DFP</CrsCode>
<Name>Dublin Ferryport</Name>
<SixteenCharacterName></SixteenCharacterName>
<Longitude>-6.196574</Longitude>
<Latitude>53.344992</Latitude>
</Station>
<Station>
<CrsCode>HTR</CrsCode>
<Name>Heathrow Central (Bus)</Name>
<SixteenCharacterName>Heathrow Central</SixteenCharacterName>
<Longitude>-0.452915</Longitude>
<Latitude>51.471207</Latitude>
</Station>
<Station>
<CrsCode>PMG</CrsCode>
<Name>Porthmadog (FR)</Name>
<SixteenCharacterName>Porthmadog FR</SixteenCharacterName>
<Longitude>-4.126746</Longitude>
<Latitude>52.923882</Latitude>
</Station>
<Station>
<CrsCode>LSM</CrsCode>
<Name>Isle of Lismore</Name>
<SixteenCharacterName>Isle of Lismore</SixteenCharacterName>
<Longitude>-5.491786</Longitude>
<Latitude>56.511869</Latitude>
</Station>
<Station>
<CrsCode>BDC</CrsCode>
<Name>Brodick (Arran)</Name>
<SixteenCharacterName>Brodick Arran</SixteenCharacterName>
<Longitude>-5.136372</Longitude>
<Latitude>55.577074</Latitude>
</Station>
<Station>
<CrsCode>RSB</CrsCode>
<Name>Rosslare Harbour</Name>
<SixteenCharacterName>Rosslare Harbour</SixteenCharacterName>
<Longitude>-6.338626</Longitude>
<Latitude>52.255216</Latitude>
</Station>
<Station>
<CrsCode>SCB</CrsCode>
<Name>Scrabster Harbour</Name>
<SixteenCharacterName>Scrabster</SixteenCharacterName>
<Longitude>-3.544390</Longitude>
<Latitude>58.611545</Latitude>
</Station>
<Station>
<CrsCode>CTB</CrsCode>
<Name>Castlebay (Barra)</Name>
<SixteenCharacterName>Castlebay Bus</SixteenCharacterName>
<Longitude>-7.488614</Longitude>
<Latitude>56.954392</Latitude>
</Station>
<Station>
<CrsCode>ULP</CrsCode>
<Name>Ullapool</Name>
<SixteenCharacterName>Ullapool</SixteenCharacterName>
<Longitude>-5.160333</Longitude>
<Latitude>57.895064</Latitude>
</Station>
<Station>
<CrsCode>SOY</CrsCode>
<Name>Stornoway (Lewis)</Name>
<SixteenCharacterName>Stornoway</SixteenCharacterName>
<Longitude>-6.387503</Longitude>
<Latitude>58.206323</Latitude>
</Station>
<Station>
<CrsCode>CRU</CrsCode>
<Name>Craignure (Mull)</Name>
<SixteenCharacterName>Craignure</SixteenCharacterName>
<Longitude>-5.704677</Longitude>
<Latitude>56.471517</Latitude>
</Station>
<Station>
<CrsCode>CUL</CrsCode>
<Name>Great Cumbrae (Island)</Name>
<SixteenCharacterName>Cumbrae</SixteenCharacterName>
<Longitude>-4.897916</Longitude>
<Latitude>55.786682</Latitude>
</Station>
<Station>
<CrsCode>KCG</CrsCode>
<Name>Kilcreggan Pier</Name>
<SixteenCharacterName>Kilcreggan</SixteenCharacterName>
<Longitude>-4.819737</Longitude>
<Latitude>55.984028</Latitude>
</Station>
<Station>
<CrsCode>HVH</CrsCode>
<Name>Hoek van Holland</Name>
<SixteenCharacterName></SixteenCharacterName>
<Longitude>4.129120</Longitude>
<Latitude>51.974027</Latitude>
</Station>
<Station>
<CrsCode>DUO</CrsCode>
<Name>Dunoon Pier</Name>
<SixteenCharacterName>Dunoon</SixteenCharacterName>
<Longitude>-4.921664</Longitude>
<Latitude>55.945575</Latitude>
</Station>
<Station>
<CrsCode>LCB</CrsCode>
<Name>Lochboisdale (South Uist)</Name>
<SixteenCharacterName>Lochboisdale</SixteenCharacterName>
<Longitude>-7.303972</Longitude>
<Latitude>57.152210</Latitude>
</Station>
<Station>
<CrsCode>UIG</CrsCode>
<Name>Uig (Isle of Skye)</Name>
<SixteenCharacterName>Uig, Skye</SixteenCharacterName>
<Longitude>-6.371742</Longitude>
<Latitude>57.585249</Latitude>
</Station>
<Station>
<CrsCode>TBT</CrsCode>
<Name>Tarbert (Isle of Lewis)</Name>
<SixteenCharacterName>Tarbert, Lewis</SixteenCharacterName>
<Longitude>-6.799399</Longitude>
<Latitude>57.897030</Latitude>
</Station>
<Station>
<CrsCode>LCH</CrsCode>
<Name>Lochmaddy (North Uist)</Name>
<SixteenCharacterName>Lochmaddy</SixteenCharacterName>
<Longitude>-7.157484</Longitude>
<Latitude>57.596520</Latitude>
</Station>
<Station>
<CrsCode>LVS</CrsCode>
<Name>Liverpool Landing Stage</Name>
<SixteenCharacterName>Livpool Land Stg</SixteenCharacterName>
<Longitude>-2.998774</Longitude>
<Latitude>53.406600</Latitude>
</Station>
<Station>
<CrsCode>KWK</CrsCode>
<Name>Keswick Bus Station</Name>
<SixteenCharacterName>Keswick Bus Stn</SixteenCharacterName>
<Longitude>-3.141946</Longitude>
<Latitude>54.601462</Latitude>
</Station>
<Station>
<CrsCode>DGS</CrsCode>
<Name>Douglas (Isle of Man)</Name>
<SixteenCharacterName>Douglas IOM</SixteenCharacterName>
<Longitude>-4.471736</Longitude>
<Latitude>54.147904</Latitude>
</Station>
<Station>
<CrsCode>DEB</CrsCode>
<Name>Dereham Bus (Market Place)</Name>
<SixteenCharacterName>Dereham Bus</SixteenCharacterName>
<Longitude>-0.940602</Longitude>
<Latitude>52.681599</Latitude>
</Station>
<Station>
<CrsCode>EMA</CrsCode>
<Name>East Midlands Airport (Bus)</Name>
<SixteenCharacterName>E Midlands Aprt.</SixteenCharacterName>
<Longitude>-1.330462</Longitude>
<Latitude>52.825718</Latitude>
</Station>
<Station>
<CrsCode>SGQ</CrsCode>
<Name>Stone (Granville Square, Bus)</Name>
<SixteenCharacterName>Granville Square</SixteenCharacterName>
<Longitude>-2.148309</Longitude>
<Latitude>52.903549</Latitude>
</Station>
<Station>
<CrsCode>LUB</CrsCode>
<Name>Luton Airport (Bus)</Name>
<SixteenCharacterName>Luton Airport</SixteenCharacterName>
<Longitude>-0.375259</Longitude>
<Latitude>51.879070</Latitude>
</Station>
<Station>
<CrsCode>EDA</CrsCode>
<Name>Edinburgh Airport (Bus)</Name>
<SixteenCharacterName>Edinburgh Airpt</SixteenCharacterName>
<Longitude>-3.358012</Longitude>
<Latitude>55.947523</Latitude>
</Station>
<Station>
<CrsCode>SAI</CrsCode>
<Name>Sheffield Arena (Tram)</Name>
<SixteenCharacterName>Sheffield Arena</SixteenCharacterName>
<Longitude>-1.420300</Longitude>
<Latitude>53.398331</Latitude>
</Station>
<Station>
<CrsCode>XCF</CrsCode>
<Name>Cardiff Airport (Bus)</Name>
<SixteenCharacterName>Cardiff Airport</SixteenCharacterName>
<Longitude>-3.339034</Longitude>
<Latitude>51.398851</Latitude>
</Station>
<Station>
<CrsCode>XAA</CrsCode>
<Name>Galashiels Bus Station</Name>
<SixteenCharacterName>Galashiels Bus</SixteenCharacterName>
<Longitude>-2.805677</Longitude>
<Latitude>55.617594</Latitude>
</Station>
<Station>
<CrsCode>FRH</CrsCode>
<Name>Calais Frethun</Name>
<SixteenCharacterName>Calais Frethun</SixteenCharacterName>
<Longitude>1.821091</Longitude>
<Latitude>50.921963</Latitude>
</Station>
<Station>
<CrsCode>PBN</CrsCode>
<Name>Paris Gare du Nord</Name>
<SixteenCharacterName>Paris Nord</SixteenCharacterName>
<Longitude>2.355725</Longitude>
<Latitude>48.880557</Latitude>
</Station>
<Station>
<CrsCode>AMS</CrsCode>
<Name>Amsterdam Centraal</Name>
<SixteenCharacterName>Amsterdan Ctl</SixteenCharacterName>
<Longitude>4.900461</Longitude>
<Latitude>52.378672</Latitude>
</Station>
<Station>
<CrsCode>BXS</CrsCode>
<Name>Brussels Midi</Name>
<SixteenCharacterName>Brussels Midi</SixteenCharacterName>
<Longitude>4.336522</Longitude>
<Latitude>50.835096</Latitude>
</Station>
<Station>
<CrsCode>SGE</CrsCode>
<Name>Swanage (Swanage Rly)</Name>
<SixteenCharacterName>SWANAGE</SixteenCharacterName>
<Longitude>-1.960048</Longitude>
<Latitude>50.609976</Latitude>
</Station>
<Station>
<CrsCode>HAR</CrsCode>
<Name>Harmans Cross (Swanage Rly)</Name>
<SixteenCharacterName>Harmans Cross</SixteenCharacterName>
<Longitude>-2.027277</Longitude>
<Latitude>50.619897</Latitude>
</Station>
<Station>
<CrsCode>CFC</CrsCode>
<Name>Corfe Castle (Swanage Rly)</Name>
<SixteenCharacterName>Corfe Castle</SixteenCharacterName>
<Longitude>-2.054689</Longitude>
<Latitude>50.638107</Latitude>
</Station>
<Station>
<CrsCode>NOD</CrsCode>
<Name>Norden (Swanage Rly)</Name>
<SixteenCharacterName>Norden</SixteenCharacterName>
<Longitude>-2.062072</Longitude>
<Latitude>50.644630</Latitude>
</Station>
<Station>
<CrsCode>HEH</CrsCode>
<Name>Herston Halt (Swanage Rly)</Name>
<SixteenCharacterName>Herston Halt</SixteenCharacterName>
<Longitude>-1.980250</Longitude>
<Latitude>50.613084</Latitude>
</Station>
<Station>
<CrsCode>MHD</CrsCode>
<Name>Minehead (WSR/Bus)</Name>
<SixteenCharacterName>Minehead</SixteenCharacterName>
<Longitude>-3.469013</Longitude>
<Latitude>51.206834</Latitude>
</Station>
<Station>
<CrsCode>XDY</CrsCode>
<Name>Dunster (Bus)</Name>
<SixteenCharacterName>Dunster</SixteenCharacterName>
<Longitude>-3.444564</Longitude>
<Latitude>51.182943</Latitude>
</Station>
<Station>
<CrsCode>WCT</CrsCode>
<Name>Watchet (WSR/Bus)</Name>
<SixteenCharacterName>Watchet</SixteenCharacterName>
<Longitude>-3.329689</Longitude>
<Latitude>51.180929</Latitude>
</Station>
<Station>
<CrsCode>BIB</CrsCode>
<Name>Bishops Lydeard (WSR)</Name>
<SixteenCharacterName>Bishops Lydeard</SixteenCharacterName>
<Longitude>-3.193899</Longitude>
<Latitude>51.053827</Latitude>
</Station>
<Station>
<CrsCode>XLU</CrsCode>
<Name>Bishops Lydeard (Bus)</Name>
<SixteenCharacterName>Bishop Lyd (BUS)</SixteenCharacterName>
<Longitude>-3.187749</Longitude>
<Latitude>51.056697</Latitude>
</Station>
<Station>
<CrsCode>YVB</CrsCode>
<Name>Yeovil Bus Station</Name>
<SixteenCharacterName>Yeovil (BUS)</SixteenCharacterName>
<Longitude>-2.627254</Longitude>
<Latitude>50.942009</Latitude>
</Station>
<Station>
<CrsCode>FLZ</CrsCode>
<Name>Flamingo Land (Bus)</Name>
<SixteenCharacterName>Flamingo Land</SixteenCharacterName>
<Longitude>-0.808575</Longitude>
<Latitude>54.208536</Latitude>
</Station>
<Station>
<CrsCode>XBR</CrsCode>
<Name>Midsomer Norton (Bus)</Name>
<SixteenCharacterName>Midsomer Norton</SixteenCharacterName>
<Longitude>-2.482952</Longitude>
<Latitude>51.285678</Latitude>
</Station>
<Station>
<CrsCode>XEQ</CrsCode>
<Name>Radstock (Bus)</Name>
<SixteenCharacterName>Radstock</SixteenCharacterName>
<Longitude>-2.447870</Longitude>
<Latitude>51.291644</Latitude>
</Station>
<Station>
<CrsCode>XKW</CrsCode>
<Name>Blackwood Bus Station</Name>
<SixteenCharacterName>Blackwood</SixteenCharacterName>
<Longitude>-3.195482</Longitude>
<Latitude>51.665032</Latitude>
</Station>
</StationList>

File diff suppressed because it is too large Load Diff

View File

@ -31,14 +31,17 @@ function sortAndMergeYAMLFiles() {
return codeA - codeB return codeA - codeB
}) })
const mergedYaml = yaml.stringify(mergedData);
// Construct the output string
// Construct the output string, removing duplicates
let outputString = "pis:\n"; let outputString = "pis:\n";
const seenCodes = new Set();
mergedData.forEach(item => { mergedData.forEach(item => {
if (item.stops.length > 0) { if (!seenCodes.has(item.code) && item.stops.length > 0) {
seenCodes.add(item.code);
outputString += ` - code: "${item.code}"\n`; outputString += ` - code: "${item.code}"\n`;
outputString += ` stops: [${item.stops.map(stop => `${stop}`).join(',')}]\n`; outputString += ` stops: [${item.stops.map(stop => `${stop}`).join(',')}]\n`;
outputString += ` toc: "${item.toc || "gw"}"\n`;
} }
}); });
@ -49,8 +52,9 @@ function sortAndMergeYAMLFiles() {
console.error("Error writing gw.pis", err) console.error("Error writing gw.pis", err)
} }
// Remove any files created by dgp2
files.forEach(file => { files.forEach(file => {
if (file.startsWith('dg_parser')) { if (file.startsWith('auto-')) {
fs.unlinkSync(directoryPath + file); fs.unlinkSync(directoryPath + file);
console.log(`Deleted file: ${file}`); console.log(`Deleted file: ${file}`);
} }