Difference between revisions of "Updating OTP graph"

From stgo
Jump to: navigation, search
Line 5: Line 5:
 
* download the new GTFS feed from: http://datos.gob.cl/datasets/ver/1587
 
* download the new GTFS feed from: http://datos.gob.cl/datasets/ver/1587
 
* connect to the OTP server via ftp, e.g. 146.155.17.54 (this is actually a VM on Lautaro)
 
* connect to the OTP server via ftp, e.g. 146.155.17.54 (this is actually a VM on Lautaro)
* copy the gtfs file to /otp/cache/gtfs/ folder
+
* copy the gtfs file to ''/otp/cache/gtfs/'' folder
 
* adjust the graph build settings file (e.g. nano /otp/graph-builder.xml) with the new name of the gfts
 
* adjust the graph build settings file (e.g. nano /otp/graph-builder.xml) with the new name of the gfts
* shutdown tomcat "sudo service tomcat7 stop" / or stop the opentripplanner-api-webapp in the tomcat manager
+
* shutdown tomcat <code>"sudo service tomcat7 stop"</code> or stop the ''opentripplanner-api-webapp'' in the tomcat manager
* make a backup copy of the existing graph in /otpg >> "zip Graph.obj santiago_graph_withgtfs_date.zip"
+
* make a backup copy of the existing graph in ''/otpg'' : <code>"zip Graph.obj santiago_graph_withgtfs_date.zip"</code>
* delete the graph file <code>rm Graph.obj</code>
+
* delete the graph file: <code>rm Graph.obj</code>
* switch to /otp folder and build the new graph <code>bin/build-graph.sh</code>
+
* switch to ''/otp'' folder and build the new graph: <code>bin/build-graph.sh</code>
* copy/move the generate Graph.obj file to /otpg
+
* copy/move the generate Graph.obj file to ''/otpg''
* restart tomcat <code>sudo service tomcat7 restart</code>
+
* restart tomcat: <code>sudo service tomcat7 restart</code>
* test...
+
* test... and monitor with: <code>tail -f /var/log/tomcat7/catalina.out</code>

Revision as of 17:06, 30 March 2015

>> return to Cedeus IDE


updating the OTP graph for Santiago:

  • download the new GTFS feed from: http://datos.gob.cl/datasets/ver/1587
  • connect to the OTP server via ftp, e.g. 146.155.17.54 (this is actually a VM on Lautaro)
  • copy the gtfs file to /otp/cache/gtfs/ folder
  • adjust the graph build settings file (e.g. nano /otp/graph-builder.xml) with the new name of the gfts
  • shutdown tomcat "sudo service tomcat7 stop" or stop the opentripplanner-api-webapp in the tomcat manager
  • make a backup copy of the existing graph in /otpg : "zip Graph.obj santiago_graph_withgtfs_date.zip"
  • delete the graph file: rm Graph.obj
  • switch to /otp folder and build the new graph: bin/build-graph.sh
  • copy/move the generate Graph.obj file to /otpg
  • restart tomcat: sudo service tomcat7 restart
  • test... and monitor with: tail -f /var/log/tomcat7/catalina.out