patrickbr / db-api-to-gtfs

Small hack to convert data from the Deutsche Bahn API into a valid GTFS feed
https://gtfs.de
GNU General Public License v2.0
34 stars 5 forks source link

Pre-initialize stop ids with FV stop ids. #1

Closed highsource closed 8 years ago

highsource commented 8 years ago

It's better to initialize station_seed with known stop ids of FV (see below). Source: http://data.deutschebahn.com/datasets/haltestellen/ plus a number of runs of the program.

[
5100005,
5100009,
5100010,
5100013,
5100015,
5100026,
5100032,
5100056,
5100061,
5100065,
5100066,
5100067,
5100071,
5100081,
5100082,
5101104,
5101307,
5103284,
5400001,
5400003,
5400014,
5400019,
5400022,
5400161,
5400201,
5400202,
5500003,
5500006,
5500008,
5500009,
5500016,
5500017,
5500080,
5500913,
5501413,
5600025,
5600081,
5600207,
5603745,
8000001,
8000002,
8000004,
8000009,
8000010,
8000013,
8000014,
8000020,
8000025,
8000026,
8000029,
8000031,
8000036,
8000039,
8000041,
8000044,
8000045,
8000049,
8000050,
8000055,
8000057,
8000058,
8000059,
8000064,
8000067,
8000068,
8000070,
8000073,
8000076,
8000078,
8000080,
8000082,
8000084,
8000085,
8000086,
8000087,
8000091,
8000093,
8000095,
8000096,
8000098,
8000103,
8000105,
8000107,
8000108,
8000111,
8000112,
8000115,
8000116,
8000118,
8000122,
8000124,
8000127,
8000128,
8000129,
8000139,
8000141,
8000142,
8000147,
8000149,
8000150,
8000152,
8000155,
8000156,
8000159,
8000162,
8000163,
8000168,
8000169,
8000170,
8000174,
8000176,
8000177,
8000181,
8000183,
8000189,
8000191,
8000192,
8000194,
8000196,
8000197,
8000199,
8000206,
8000207,
8000211,
8000213,
8000225,
8000230,
8000235,
8000236,
8000237,
8000238,
8000240,
8000244,
8000249,
8000250,
8000252,
8000253,
8000257,
8000259,
8000260,
8000261,
8000262,
8000263,
8000266,
8000271,
8000274,
8000275,
8000279,
8000283,
8000284,
8000286,
8000290,
8000291,
8000294,
8000297,
8000298,
8000301,
8000302,
8000306,
8000307,
8000309,
8000310,
8000312,
8000314,
8000316,
8000318,
8000320,
8000322,
8000323,
8000329,
8000331,
8000337,
8000349,
8000368,
8000377,
8000385,
8000483,
8000522,
8000571,
8000664,
8000667,
8000718,
8000732,
8000770,
8000774,
8000800,
8000879,
8000891,
8000935,
8000943,
8001055,
8001443,
8001751,
8001767,
8001768,
8001787,
8001844,
8001995,
8002041,
8002206,
8002218,
8002461,
8002548,
8002549,
8002553,
8002554,
8002757,
8002806,
8003016,
8003036,
8003065,
8003102,
8003184,
8003200,
8003330,
8003487,
8003494,
8003515,
8003545,
8003680,
8003701,
8003866,
8003930,
8003978,
8004009,
8004124,
8004158,
8004305,
8004343,
8004449,
8004488,
8004585,
8004610,
8004751,
8004760,
8004885,
8004965,
8005362,
8005424,
8005556,
8005609,
8005661,
8006053,
8006076,
8006272,
8006369,
8006421,
8006552,
8006730,
8007768,
8010004,
8010018,
8010022,
8010033,
8010050,
8010060,
8010066,
8010073,
8010077,
8010085,
8010089,
8010093,
8010097,
8010099,
8010101,
8010113,
8010133,
8010136,
8010139,
8010159,
8010193,
8010195,
8010205,
8010216,
8010217,
8010220,
8010222,
8010224,
8010240,
8010250,
8010255,
8010268,
8010282,
8010297,
8010304,
8010324,
8010334,
8010338,
8010355,
8010361,
8010366,
8010368,
8010382,
8010396,
8010404,
8010405,
8011044,
8011051,
8011102,
8011113,
8011160,
8011191,
8011956,
8012183,
8012666,
8012683,
8012763,
8013470,
8070003,
8070004,
8100001,
8100002,
8100004,
8100008,
8100012,
8100013,
8100014,
8100017,
8100040,
8100041,
8100042,
8100043,
8100044,
8100060,
8100061,
8100062,
8100063,
8100064,
8100065,
8100067,
8100070,
8100071,
8100079,
8100080,
8100081,
8100085,
8100090,
8100092,
8100093,
8100095,
8100097,
8100098,
8100099,
8100102,
8100108,
8100122,
8100131,
8100132,
8100137,
8100138,
8100147,
8100150,
8100173,
8100197,
8100309,
8100507,
8100514,
8100539,
8101917,
8103000,
8200100,
8300046,
8300048,
8300076,
8300084,
8300086,
8300089,
8300092,
8300093,
8300094,
8300098,
8300101,
8300106,
8300110,
8300113,
8300115,
8300120,
8300124,
8300126,
8300130,
8300148,
8300151,
8300179,
8300217,
8300257,
8300263,
8303915,
8400051,
8400055,
8400058,
8400066,
8400071,
8400173,
8400316,
8400322,
8400621,
8500010,
8500023,
8500026,
8500218,
8502113,
8502119,
8503000,
8503016,
8503424,
8503504,
8506000,
8506206,
8506210,
8506302,
8506314,
8507000,
8507100,
8507483,
8507492,
8507493,
8509000,
8509002,
8509411,
8600623,
8601318,
8601512,
8601899,
8601996,
8602553,
8602722,
8602887,
8700011,
8700023,
8700031,
8700074,
8700091,
8700152,
8700271,
8704918,
8704980,
8730082,
8730086,
8800002,
8800004,
8800012
]
patrickbr commented 8 years ago

You are absolutely right, it makes sense to provide this list by default. I added the ability to parse a list of station IDs as feed stations with d8824c76328ef1535f21eaac612ecd08f72b3bc6, by default the feed_stations.list file is used.

highsource commented 8 years ago

Many thanks. :+1: