Skip to content

Instantly share code, notes, and snippets.

@mrcnc
Last active June 14, 2017 00:46
Show Gist options
  • Save mrcnc/b08603b86e81e808ff4e95ae5f0478c1 to your computer and use it in GitHub Desktop.
Save mrcnc/b08603b86e81e808ff4e95ae5f0478c1 to your computer and use it in GitHub Desktop.
Setup an OpenTripPlanner (OTP) server for New Orleans
## following instructions for setting up OTP server: http://opentripplanner.readthedocs.io/en/latest/Basic-Usage/
# download the otp server application
wget https://repo1.maven.org/maven2/org/opentripplanner/otp/1.1.0/otp-1.1.0-shaded.jar
# download the latest gtfs data
wget https://www.dropbox.com/s/i3y9irjhg2n84g2/gtfs.sqlite.zip?dl=0 -O nola-gtfs.zip
# download osm data for new orleans
wget https://s3.amazonaws.com/metro-extracts.mapzen.com/new-orleans_louisiana.osm.pbf
# run the server and build the transit network graph (must have java 8 installed)
nohup java -Xmx2G -jar otp-1.1.0-shaded.jar --build /home/ec2-user/ --inMemory --analyst > /var/log/otp.log 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment