Skip to content

Instantly share code, notes, and snippets.

@timhowgego
timhowgego / nir.msn
Created January 31, 2021 10:59
Northern Ireland Railways Dummy Master Station Name File. Spoof for Great Britain rail CIF software. NIR coordinates use Irish grid, hence cannot be imported into GB.
A FILE-SPEC=05 1.00 01/01/21 00.00.01 001
A Adelaide 0AD AD AD 00000 00000 1
A Antrim 0AN AN AN 00000 00000 1
A Ballymena 0BA BA BA 00000 00000 1
A Ballycarry 0BC BC BC 00000 00000 1
A Bridge End 0BE BE BE 00000 00000 1
A Bleach Green Junction 0BG BG BG 00000 00000 1
A Balmoral 0BL BL BL 00000 00000 1
A Bellarena 0BN BN BN 00000 00000 1
A Bangor 0BR BR BR 00000 00000 1
@timhowgego
timhowgego / stops.txt
Created January 31, 2021 10:46
Northern Ireland Railways GTFS stops.txt. This file cannot be automatically created from NIR's open data CIF. Includes single generalised points for stations, junctions and passing loops.
stop_id,stop_name,stop_lat,stop_lon
AD,Adelaide,54.57836638,-5.95507085
AN,Antrim,54.71772131,-6.2111394
BA,Ballymena,54.86433274,-6.2850077
BC,Ballycarry,54.77727727,-5.7256885
BE,Bridge End,54.60188461,-5.90647215
BG,Bleach Green Junction,54.67733283,-5.90341178
BL,Balmoral,54.56886631,-5.96822693
BN,Bellarena,55.12624501,-6.95253677
BR,Bangor,54.65845538,-5.67228095
@timhowgego
timhowgego / gist:10dc78faff7fc1c9c47b60bed22c9fd7
Created September 4, 2018 11:01
Spanish Passenger Railway Network Geojson
<!-- ----------------------------------------------
The body of this text contains a Geojson file representing all trains (of a non-tourist nature) operated within Spain on Friday 20 July 2018. For further description of the methodology, see https://timhowgego.wordpress.com/2018/09/04/disassembling-trenes/ .
Each MultiLineString represents a sequence of station nodes in the order they are served. Lines are plotted between the stations served only. Stations are identified only by their common coordinates. All coordinates are WGS 84, as widely used in internet mapping. Each line is associated with one or more daily train journeys - field "trains", the total of both directions combined - plus a specific unique "product" identifier, vis:
(Renfe)
1 Cercanias (Iberian gauge)
2 Regional
3 Regional Express