[iRail] XML interface news
Christophe Versieux
christophe.versieux at gmail.com
Wed Aug 11 17:40:18 UTC 2010
May this index help you? ;-)
public static final String[] LIST_ID = new String[] {
"205","6","104","8","70","9","10","77","12","16","19","6","22","24","25","27","31","34","35","139","37","38","30","764","58","61","64","139","37","38","61","30","764","58","64","66","67","68","70","74","75","77","78","1841","939","82","100","84","102","102","105","106","105","106","107","110","114","118","120","124","123","124","123","126","127","128","130","132","133","136","138","243","848","143","142","146","147","148","151","151","153","155","157","158","160","166","167","169","171","1767","177","183","184","185","187","188","189","189","190","191","1213","192","183","708","195","199","201","203","205","208","209","210","212","210","212","215","216","217","218","219","221","227","220","215","217","216","218","220","219","221","227","229","231","232","235","246","247","249","250","252","255","257","258","259","258","259","261","262","263","266","272","277","278","992","281","288","286","287","289","649","291","313","316","13","320","317","1761","318","319","325","324","824","326","327","328","329","327","331","1154","335","336","337","342","345","360","346","68","347","203","348","351","352","360","361","363","364","365","366","367","368","369","371","371","375","376","378","380","382","383","1843","384","391","392","395","399","400","401","402","404","405","406","409","410","412","413","414","415","418","421","422","423","424","427","1181","432","432","449","455","433","434","435","436","438","442","1670","446","449","455","447","457","458","462","470","470","471","472","474","477","479","480","458","486","488","489","493","494","496","501","504","502","504","514","515","507","510","518","519","520","1663","521","521","523","530","532","535","539","540","541","542","546","550","553","554","825","559","560","562","563","565","566","567","568","570","592","572","574","578","579","583","585","589","590","591","592","600","601","602","604","606","611","610","610","612","615","617","619","620","621","628","628","629","630","634","632","635","636","637","642","643","278","644","647","648","649","654","672","673","673","1744","1744","13","692","664","682","683","684","685","686","700","699","701","704","705","706","707","708","710","710","715","719","720","723","724","725","726","728","730","732","1085","732","733","736","738","739","742","743","744","747","748","750","751","754","759","715","762","762","726","728","730","767","768","782","781","810","811","784","786","788","789","790","791","793","797","798","801","805","807","809","810","811","812","814","815","818","819","820","820","821","822","826","827","1842","832","835","837","868","840","841","842","848","855","860","862","863","864","877","866","868","870","871","873","894","895","895","896","897","899","900","901","752","902","905","906","907","911","908","910","911","1839","916","919","920","923","924","929","931","933","121","929","936","941","938","939","1666","951","952","952","954","956","957","958","961","962","968","971","970","973","974","975","976","977","979","982","984","989","991","1013","995","1079","996","997","1005","1009","1013","1005","1018","1021","1017","1031","1034","1081","1088","1090","1043","1048","1048","1056","1066","1058","1059","1060","1061","1062","1063","1068","205","121","1073","243","1076","1079","1730","1730","1081","1082","1083","1084","1087","1088","1090","1091","1092","1093","1097","459","1102","1107","1113","1125","1128","1128","1130","672","319","1131","1134","1135","1136","1139","1141","1144","1145","1146","1147","1149","1146","1150","1151","1151","1152","1154","1157","335","1159","1160","1160","1161","1167","1168","1167","1168","1174","1176","1177","1177","1180","1180","1181","1182","1184","1185","1186","1187","1189","1192","1192","1194","1195","824","1198","1202","414","415","1206","1207","1212","1213","1218","1219","1219","1223","1223","1224","1226","1228","1229","1230","1234","1235","1238","1195","1253","1242","1244","1245","1232","1248","602","1254","1255","1256","1260","1261","1262","1723","1265","1266","1270","1272","1092","1231","1274","1275","1278"
};
My station list may be old, I never updated.
public final static String[] LISTE_GARES = new String[]
{"'S-GRAVENBRAKEL","AALST","AALST-KERREBROEK","AALTER","AARLEN","AARSCHOT","AARSELE","AAT","ACREN","AISEAU","ALKEN","ALOST","AMAY","AMPSIN","ANDENNE","ANGLEUR","ANS","ANSEREMME","ANTOING","ANTWERPEN-BERCHEM","ANTWERPEN-CENTRAAL","ANTWERPEN-DAM","ANTWERPEN-HAVEN","ANTWERPEN-LUCHTBAL","ANTWERPEN-NOORDERDOKKEN","ANTWERPEN-OOST","ANTWERPEN-ZUID","ANVERS-BERCHEM","ANVERS-CENTRAL","ANVERS-DAM","ANVERS-EST","ANVERS-HAVEN","ANVERS-LUCHTBAL","ANVERS-NOORDERDOKKEN","ANVERS-SUD","ANZEGEM","APPELTERRE","ARCHENNES","ARLON","ASSE","ASSESSE","ATH","ATHUS","AUBANGE","AUDENARDE","AUVELAIS","AYE","AYWAILLE","BAASRODE-SUD",
etc..
};
Hope that will help.
And yes if we successfully scrap the HAFAS data, we can forget SNCB/NMBS.
HAFA is one step at the top of NMBS, we will have all European cities.
This is only OK for train/route planner.
Railtime.be gives a lot of informations on delay and I think these
informations are provided by Infrabel and not HAFAS.
Christophe
Yeri Tiete wrote:
> Evening,
>
> I have been in contact with someone that prefers to remain anonymous that has (limited) access to the NMBS (= Belgian Railway company) infrastructure.
>
> First of all, the XML interface:
>
> => http://hari.b-rail.be/Hafas/bin/extxml.exe
>
> This interface is used internally and no other application uses this (and it's not known to anyone).
> There is no documentation about how this interface actually works (but Pieter has been playing with it) and thus he couldn't really help me further.
>
> What I heard is that:
> => All trains and stations are actually numbers.
> Say Antwerp Central station is for example 3949 (example!). So without an index there is no point even trying. And he couldn't find any index. So we're kind of stuck on that.
>
> He also would rather not send us the request example, because we can't really use it, and it might endanger him (open data, yay) as it would be obvious the leak is from the inside.
>
> He thinks scraping the HTML site is the way to go, or to get in touch with the NMBS.
>
> Now, the NMBS has two departments that could help us:
> - National
> - International
>
> He told me "National" is very strict, closed minded and we'll likely waste time on that, however, "International" is a lot opener (and shares info with other (rail) companies, including Google, for free). As he said, he doesn't get Google gets all info while something like iRail is being stopped.
>
> As for the NMBS itself, it pays about 1500 euro per week to HaCon, the Hafas developer. HaCon updates all information for all train companies (in Europe), and generates time tables and lists once a week on some Unix server. So queries are actually not real time queries over multiple countries, but there's a list of everything pre-generated or something. So keep in mind HaCon apparently does own all the data and the NMBS is paying a fee to use the data (and probably a fee to use the software as well).
>
> What I'd suggest, is actually just knock on the NMBS' door, and go for a chat. I'll mail them this weekend.
>
> As for the Trac website (http://project.irail.be), I hope to have it fully functional by tonight.
>
> --
> Kind regards,
> Yeri Tiete
> yeri at tiete.be
> www.yeri.be
> +32 474/61.01.39
>
> _______________________________________________
> iRail mailing list
> iRail at list.irail.be
> http://lists.rootspirit.com/mailman/listinfo/irail
>
More information about the iRail
mailing list