travelinedata


JourneyWeb

JourneyWeb is an XML protocol which can be used to communicate with the Traveline journey planning servers. It can provide information in a number of ways including:

Resources

  • http://www.dft.gov.uk/journeyweb to download the schema and other documentation
  • access to Traveline regional servers. This is up to each Traveline region. Please contact the regional manager to discuss your project.

    Need help getting started?

    This is a very simple guide to help you get started experimenting with JourneyWeb in the Firefox browser.

    Download and install the HTTP Resource Test Firefox Extension.

    After you have reloaded Firefox "HTTP Resource Test" should be listed in the Tools tab. Click on this to open the HTTP Resource Test window.

    URI: enter the details that you have been provided with if a Traveline region has arranged access for you. This will include the address of the server and you may need to insert an account name and password.

    Method: Change this to POST

    Client Request: this is where you paste an xml script. See below for some sample requests you can copy, adjust and test.

    Submit: Use this button when above have been set up

    Server Response: This where the response from the server will appear.

    Sample requests

    The following samples are based on model requests that have been available for a number of years. You are best to View: Pagesource and copy the sections between the "pre" and "/pre" tags. You will need to adjust (JourneyTime) for a date in the near future and (NaPTANID) for a valid NaPTAN stop in the chosen region.

    Journey Request

    
    
    	
    		
    			
    				
    					
    						2900L1522
    					
    					2010-06-26T07:00:00
    				
    				Long Stratton: A140/Brands Lane
    			
    			
    				
    					
    						2900S631
    					
    				
    				Swainsthorpe: Dun Cow
    			
    			
    				3
    			
    		
    	
    
    

    Service Timetable Request

    
    
    	
    		
    			
    				SIM
    				2
    				outbound
    			
    			2010-06-23
    			6
    		
    	
    
    

    Stop Timetable Request

    
    
    	
    		
    			
    				
    					2900L1522
    				
    			
    			
    				
    					2900S631
    				
    			
    			2010-06-23
    			5
    			
    				
    				
    			
    		
    	
    
    

    Stop Event Request

    
    
    	
    		
    			
    				2900L1522
    			
    			2010-06-26T07:42:00
    			
    				5
    			
    			true
    			depart
    		
    	
    
    

    Services Request

    
    
    	
    		
    			X95
    		
    	
    
    

    Operator Request

    
    
    
    	
    		
    			
    				
    			
    		
    	
    
    

    Interpretting the results

    more content to follow


    Go back to Travelinedata

    © Traveline 2010, Last updated: 4 July 2010