Java Examples

From Open Rail Data Wiki
Revision as of 17:59, 9 July 2013 by Jonathon Hurley (talk | contribs) (Added categories)
Jump to navigation Jump to search

Gorizza Stomp library

This code requires the Gozirra Stomp library.

private static void go() throws Exception
       final Client c = new Client(Constants.SERVER, Constants.PORT, Constants.USERNAME, Constants.PASSWORD);
       for (final String topic : Constants.TOPICS)
           System.out.println("  " + topic);
           c.subscribe("/topic/" + topic,
                   new Listener()
                       public void message(Map map, String s)
                           processMessage(map, s);
       System.out.println("done subscribing");

Network Rail Open Data Feeds
Data Feeds About the Feeds Account States Durable Subscriptions Example Code ( PHP / C# / Java / Ruby / Node.js) • Advanced UsesFAQ Release Notes
Train Movements Train Movements Feed Train Activation Train Cancellation Train Movement Train Reinstatement Change of Origin Change of Identity Change of Location TSPEED Field Planned Cancellations Cancellation Codes
TD TD Feed C-Class Messages S-Class Messages Train Describers TD Berths
TSR TSR Feed Route Codes
SCHEDULE SCHEDULE Feed Schedule and Location Records Association Records CIF Codes How Scheduling Works Allowances
Reference Data Reference Data Feed TOC Codes CIF Codes Delay Attribution Codes Identifying Locations (STANOX, TIPLOC, NLC and 3-Alpha Codes) STANOX Geographical Areas Train Planning data