--- a/origin-src/graphserver.html
+++ /dev/null
@@ -1,233 +1,1 @@
-<html>
- <head>
- <link rel="stylesheet" href="main.css" type="text/css">
- <title>Graphserver - The Open-Source Multi-Modal Trip Planner</title>
- </head>
-
-<body>
-<div id='container'>
-<a href="gallery.html"><img src="img/graphbanner.png"></a>
-<h1>Graphserver</h1>
-The open-source multi-modal trip planner.
-
-<h2>Code Repository</h2>
-<a href="http://github.com/bmander/graphserver/tree/master">http://github.com/bmander/graphserver/tree/master</a>
-
-<h2>Mailing List</h2>
-
-Direct questions and comments to the <a href="http://groups.google.com/group/graphserver">Graphserver Google Group</a>.
-
-<h2>Download</h2>
-
-<pre style="background-color:#F5F5F5"> $ wget http://github.com/bmander/graphserver/zipball/08132009</pre>
-
-Or, for the stout of heart, get a copy of the current working branch
-
-<pre style="background-color:#F5F5F5"> $ git clone git://github.com/bmander/graphserver.git </pre>
-
-<h2>Install</h2>
-<h3>Cold Start</h3>
-<p>You'll need a computer running linux. The following setup was tested and checked on <a href="http://aws.amazon.com/console/">Amazon EC2</a> small instance running Fedora, built from an image with id "ami-48aa4921", at a cost of $0.20/hour.<p>
-<p>You'll need to get git:</p>
-<p>On Ubuntu:</p>
-<pre style="background-color:#F5F5F5"> $ sudo apt-get install git-core </pre>
-<p>On Fedora:</p>
-<pre style="background-color:#F5F5F5"> $ yum install git-core</pre>
-
-<h3>Get The Prerequisites</h3>
-
-<p>You're about to compile C code against python development libraries. You need to prepare for that.</p>
-
-On Ubuntu:
-<pre style="background-color:#F5F5F5">$ sudo apt-get install python-setuptools
-$ sudo apt-get install build-essential
-$ sudo apt-get install python-dev
-</pre>
-
-On Fedora:
-<pre style="background-color:#F5F5F5">
-$ yum install python-setuptools-devel
-$ yum install gcc
-$ yum install gcc-c++
-$ yum install python-devel
-$ easy_install simplejson
-</pre>
-
-<h3>One-step Install</h3>
-<p>Get a copy of Graphserver</p>
-<pre style="background-color:#F5F5F5">$ git clone git://github.com/bmander/graphserver.git</pre>
-
-This will download and compile the core, download and install package dependencies, and install the python wrappers in one go.
-
-<pre style="background-color:#F5F5F5">$ cd graphserver/pygs
-$ sudo python setup.py install
-</pre>
-
-<h3>Install RTree</h3>
-<p>If you want to load OSM Data (and you probably do), you have to laboriously install RTree</p>
-<pre style="background-color:#F5F5F5"> $ wget http://download.osgeo.org/libspatialindex/spatialindex-1.4.0.tar.gz
- $ gunzip spatialindex-1.4.0.tar.gz
- $ tar -xvf spatialindex-1.4.0.tar
- $ cd spatialindex-1.4.0
- $ ./configure --prefix=/usr
- $ make
- $ make install
- $ easy_install RTree
- $ cp /usr/lib/python2.5/site-packages/Rtree-0.5.0-py2.5-linux-i686.egg/libsidx.so /usr/lib
-</pre>
-
-<h2>A Quick Tour of the Basics</h2>
-
-<pre style="background-color:#F5F5F5">
-$ python
->>> from graphserver.core import Graph, Street, State
->>> gg = Graph()
->>> gg.add_vertex("A")
-<span class="computeroutput"><graphserver.core.Vertex object at 0xb7d9608c></span>
->>> gg.add_vertex("B")
-<span class="computeroutput"><graphserver.core.Vertex object at 0xb7c397cc></span>
->>> gg.add_edge( "A", "B", Street("1", 100) )
-<span class="computeroutput"><graphserver.core.Edge object at 0xb7c4a92c></span>
->>> gg.add_edge( "A", "B", Street("2", 50 ) )
-<span class="computeroutput"><graphserver.core.Edge object at 0xb7da708c></span>
->>> gg.size #the graph is quite small
-<span class="computeroutput">2</span>
->>> gg.get_vertex("A").outgoing <span class="pycomment"># the graph is directional</span>
-<span class="computeroutput">[<graphserver.core.Edge object at 0xb7b9accc>, <graphserver.core.Edge object at 0xb7b9acac>]</span>
->>> gg.get_vertex("A").incoming
-<span class="computeroutput">[]</span>
->>> spt = gg.shortest_path_tree( "A", "B", State(1,0) )
->>> spt
-<span class="computeroutput"><graphserver.core.ShortestPathTree object at 0xb7c45b8c></span>
->>> spt.get_vertex("A") <span class="pycomment"># the shortest path tree is a partial copy of the graph</span>
-<span class="computeroutput"><graphserver.core.Vertex object at 0xb7c4a92c></span>
->>> spt.get_vertex("A").outgoing <span class="pycomment"># which only contains the shortest paths to all points closer than 'B' </span>
-<span class="computeroutput">[<graphserver.core.Edge object at 0xb7b9adec>]</span>
->>> vertices, edges = spt.path("B") <span class="pycomment"># you can get the path 'A' to 'B' from the shortest path tree</span>
->>> vertices <span class="pycomment"># a list of references to the SPT vertices along the shortest path</span>
-<span class="computeroutput">[<graphserver.core.Vertex object at 0xb7b9ae4c>, <graphserver.core.Vertex object at 0xb7b9adec>]</span>
->>> edges <span class="pycomment"># a list of references to the SPT edges along the shortest path</span>
-<span class="computeroutput">[<graphserver.core.Edge object at 0xb7b9accc>]</span>
->>> edges[0].payload <span class="pycomment"># the edge payload contains information about the edge</span>
-<span class="computeroutput"><Street name='2' length=50.000000 rise=0.000000 fall=0.000000 way=0></span>
->>> vertices[-1].payload <span class="pycomment"># the payload of the final vertex has useful information</span>
-<span class="computeroutput"><graphserver.core.State object at 0xb7c4a92c></span>
->>> vertices[-1].payload.time <span class="pycomment"># it takes 58 seconds to get from "A" to "B"</span>
-<span class="computeroutput">58</span>
->>> spt.destroy() <span class="pycomment"># these functions are thin wrappers around C functions</span>
->>> gg.destroy() <span class="pycomment"># so we have to perform garbage collection explicitly</span>
->>> exit()
-</pre>
-<h2>Compiling Graphs</h2>
-<h3>Loading OpenStreetMap Data</h3>
-
-Grab some OSM data. Here, we download an area around of Redding, CA, US from the OpenStreetMap HTTP API.
-<pre style="background-color:#F5F5F5"> $ wget http://api.openstreetmap.org/api/0.6/map?bbox=-122.4624,40.5505,-122.2876,40.6334 -O map.osm
-</pre>
-<p>Compile the OSM file into an OSMDB file, and then load that OSMDB file into a graph.</p>
-<pre style="background-color:#F5F5F5"> $ gs_osmdb_compile map.osm map.osmdb
- $ gs_import_osm map.gdb map.osmdb
-</pre>
-<p>Take a look at your new graph. This prints every vertex label in the graph:</p>
-<pre style="background-color:#F5F5F5"> $ gs_gdb_inspect map.gdb</pre>
-<p>Pick one and see all edges outgoing from that vertex:</p>
-<pre style="background-color:#F5F5F5"> $ gs_gdb_inspect map.gdb osm-92080455</pre>
-Prints:
-<pre style="background-color:#F5F5F5">osm-92080455 -> osm-91938757
- <Street name='10585937-1' length=136.119463 rise=0.000000 fall=0.000000 way=849>
-osm-92080455 -> osm-92080457
- <Street name='10585937-2' length=139.452776 rise=0.000000 fall=0.000000 way=849>
-osm-92080455 -> osm-92601143
- <Street name='10596654-0' length=126.551782 rise=0.000000 fall=0.000000 way=1809>
-osm-92080455 -> osm-92080381
- <Street name='10596654-1' length=6.382770 rise=0.000000 fall=0.000000 way=1809></pre>
-
-<h3>Loading Public Transit Data</h3>
-
-Grab the GTFS file for your favorite transit agency. Here, we grab the GTFS for the transit system in Redding, CA:
-<pre style="background-color:#F5F5F5"> $ wget http://trilliumtransit.com/transit_feeds/redding/google_transit.zip -O redding_gtfs.zip</pre>
-<p>Compile the GTFS into a GTFSDB, and then compile that GTFSDB into a graph<p>
-<pre style="background-color:#F5F5F5"> $ gs_gtfsdb_build redding_gtfs.zip redding.gtfsdb
- $ gs_import_gtfs redding.gdb redding.gtfsdb</pre>
-<p>Use gs_gdb_inspect to check that your new transit graph is in good shape</p>
-<pre style="background-color:#F5F5F5"> $ gs_gdb_inspect redding.gdb sta-3622</pre>
-should print
-<pre style="background-color:#F5F5F5">sta-3622 -> psv-0-000-004
- <TripBoard int_sid=0 sid=105A166 agency=0 calendar=165157760 timezone=164034504 boardings=[('1572A105B166', 23964), ('1598A105B166', 27564), ('1602A105B166', 31164), ('1607A105B166', 34764), ('1600A105B166', 38364), ('1605A105B166', 41964), ('1603A105B166', 45564), ('1608A105B166', 49164), ('1601A105B166', 52764), ('1606A105B166', 56364), ('1599A105B166', 59964), ('1604A105B166', 63564), ('1609A105B166', 67164)]>
-sta-3622 -> psv-0-000-004
- <TripBoard int_sid=1 sid=106A166 agency=0 calendar=165157760 timezone=164034504 boardings=[('2459A106B166', 34764), ('1635A106B166', 38364), ('1640A106B166', 41964), ('1638A106B166', 45564), ('1643A106B166', 49164), ('1636A106B166', 52764), ('1641A106B166', 56364), ('1634A106B166', 59964), ('1639A106B166', 63564), ('1637A106B166', 67164)]>
-</pre>
-
-<h3>Intermingling Public Transit and Street Data</h3>
-<p>You can load both OSM and GTFS data into the same graph, then run a command to link them.</p>
-<pre style="background-color:#F5F5F5"> $ gs_import_gtfs redding_all.gdb redding.gtfsdb
- $ gs_import_osm redding_all.gdb map.osmdb
- $ gs_link_osm_gtfs redding_all.gdb map.osmdb redding.gtfsdb</pre>
-<p>Inspect:</p>
-<pre style="background-color:#F5F5F5"> $ gs_gdb_inspect redding.gdb sta-3622</pre>
-<p>prints:</p>
-<pre style="background-color:#F5F5F5">sta-3622 -> osm-92366549
- <graphserver.core.Link object at 0x9a0b20c>
-sta-3622 -> psv-0-000-004
- <TripBoard int_sid=0 sid=105A166 agency=0 calendar=163855912 timezone=161122808 boardings=[('1572A105B166', 23964), ('1598A105B166', 27564), ('1602A105B166', 31164), ('1607A105B166', 34764), ('1600A105B166', 38364), ('1605A105B166', 41964), ('1603A105B166', 45564), ('1608A105B166', 49164), ('1601A105B166', 52764), ('1606A105B166', 56364), ('1599A105B166', 59964), ('1604A105B166', 63564), ('1609A105B166', 67164)]>
-sta-3622 -> psv-0-000-004
- <TripBoard int_sid=1 sid=106A166 agency=0 calendar=163855912 timezone=161122808 boardings=[('2459A106B166', 34764), ('1635A106B166', 38364), ('1640A106B166', 41964), ('1638A106B166', 45564), ('1643A106B166', 49164), ('1636A106B166', 52764), ('1641A106B166', 56364), ('1634A106B166', 59964), ('1639A106B166', 63564), ('1637A106B166', 67164)]></pre>
-
-<h3>Inspecting the graph with gs_crawl</h3>
-<p>Start gs_crawl, a little graph inspection web service</p>
-<pre style="background-color:#F5F5F5"> $ gs_crawl redding.gdb 80</pre>
-<p>Then steer your web browser to the appropriate location.<p>
-<p>If you're using Amazon EC2, using your own public DNS:</p>
-<pre style="background-color:#F5F5F5">http://YOUR-EC2-ADDRESS.compute-1.amazonaws.com/</pre>
-<p>Or if you're simply running on your local machine:</p>
-<pre style="background-color:#F5F5F5">http://localhost:80/</pre>
-
-<h3 id="routeserver">Getting routes with gs_routeserver</h3>
-<p>First, you'll need PyYAML</p>
-<pre style="background-color:#F5F5F5"> $ sudo easy_install pyyaml</pre>
-<p>The routeserver finds a path, and then uses a series of "handlers" to convert that path into a human-readable format. Those handlers are enumearted and set up by a configuration file called handlers.yaml. Graphserver comes with an example handlers.yaml which you can use to get started</p>
-<pre style="background-color:#F5F5F5"> $ cp /path/to/graphserver/pygs/graphserver/ext/routeserver/handlers.yaml .</pre>
-<p>This handlers.yaml file is filled with "CHANGEME" stubs. Replace every "CHANGEME.gtfsdb" with "redding.gtfsdb" and every "CHANGEME.osmdb" with "redding.osmdb"</p>
-<p>Fire up a routeserver on the compiled graph</p>
-<pre style="background-color:#F5F5F5"> $ gs_routeserver redding.gdb handlers.yaml -p 80</pre>
-<p>Get a list of all vertices in the system</p>
-<pre style="background-color:#F5F5F5">http://YOUR_DOMAIN_NAME/vertices</pre>
-<p>Get a route narrative</p>
-<pre style="background-color:#F5F5F5">http://YOUR_DOMAIN_NAME/path?origin="osm-92011649"&dest="sta-3803"&currtime=1260839444</pre>
-<p>or</p>
-<pre style="background-color:#F5F5F5">http://YOUR_DOMAIN_NAME/path_raw?origin="osm-92011649"&dest="sta-3803"&currtime=1260839444</pre>
-
-<h3>What about a really big city?</h3>
-<p>First, get Java 1.6. Or Java6. I think they're the same thing. Get the JDK, but not the JVM, the JRE, SDK, SDN, or the JCE. Note Java SE comes with Jave EE, which is apparently at version 5, and may or may not have anything to do with J2EE. I don't know what those have to do with anything. Google it or something. I don't know. They don't make it particularly easy for you. It's like, they've got more money than god and nothing pleases them better than pouring all that expertise into baffling the hell out of you. Honestly, I can't stand Java, but you need it to run Osmosis.</p>
-<p>Then, get Osmosis</p>
-<pre style="background-color:#F5F5F5"> $ wget http://gweb.bretth.com/osmosis-latest.zip
- $ unzip osmosis-latest.zip
- $ chmod a+x ./osmosis-0.30/bin/osmosis</pre>
-<p>Download a biggie GTFS file. Here's the one for the Seattle area:</p>
-<pre style="background-color:#F5F5F5"> $ wget http://www.gtfs-data-exchange.com/gtfs/badhill_20091208_1910.zip</pre>
-<p>Compile it into a GTFSDB. This will take a few minutes</p>
-<pre style="background-color:#F5F5F5"> $ gs_gtfsdb_build badhill_20091208_1910.zip kingco.gtfsdb</pre>
-<p>Check the bounds of the GTFSDB</p>
-<pre style="background-color:#F5F5F5"> $ sqlite3 kingco.gtfsdb "select min(stop_lon),min(stop_lat),max(stop_lon),max(stop_lat) from stops"</pre>
-returns:
-<pre style="background-color:#F5F5F5">-122.506729|47.1553345|-121.78244|47.9323654</pre>
-This will come in handy soon.
-<p>Get a huge chunk of OSM data from the CloudMade state files. Here's Washington State:</p>
-<pre style="background-color:#F5F5F5"> $ wget http://downloads.cloudmade.com/north_america/united_states/washington/washington.osm.highway.bz2
- $ bunzip2 washington.osm.highway.bz2</pre>
-<p>Then, use the bounding box coordinates we just got to cut down the OSM file to the area surrounding the agency. Check it:<p>
-<pre style="background-color:#F5F5F5"> $ /path/to/osmosis-0.30/bin/osmosis --read-xml washington.osm.highway --bounding-box left=-122.506729 bottom=47.1553345 right=-121.78244 top=47.9323654 --write-xml kingco.osm</pre>
-<p>Then, compile and set it up like normal. It's a trip-planning bonanza.</p>
-
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-1815162-1";
-urchinTracker();
-</script>
-</body>
-
-
-</html>
-
--- a/origin-src/wlach-halifax-transit-feed-fef68c1/1-to-dartmouth.yml
+++ /dev/null
@@ -1,214 +1,1 @@
-short_name: 1
-long_name: To Dartmouth
-time_points: [ 7284, 7412, 6087, 7351, 7151 ]
-between_stops:
- 7284-7412: [ 6203, 7423 ]
- 7412-6087: [ 7419, 7409, 7402, 6453, 6447, 6449, 6454, 6452, 8328, 8337, 8333, 8336, 8327, 8338, 6121, 6106 ]
- 6087-7351: [ 6455, 6773, 6778, 6779, 6775, 6787 ]
-stop_times: [
- [ -, -, -, 604a, 607a],
- [ 600a, 611a, 625a, 633a, 637a],
- [ 610a, 621a, 635a, 643a, 647a],
- [ 620a, 631a, 645a, 653a, 657a],
- [ 630a, 641a, 655a, 703a, 707a],
- [ 640a, 651a, 705a, 713a, 717a],
- [ 650a, 701a, 716a, 724a, 728a],
- [ 700a, 713a, 728a, 736a, 740a],
- [ 710a, 723a, 738a, 746a, 750a],
- [ 720a, 733a, 748a, 756a, 800a],
- [ 730a, 743a, 758a, 806a, 810a],
- [ 740a, 753a, 808a, 816a, 820a],
- [ 750a, 803a, 818a, 826a, 830a],
- [ 800a, 813a, 828a, 836a, 840a],
- [ 810a, 823a, 838a, 846a, 850a],
- [ 820a, 833a, 848a, 856a, 900a],
- [ 830a, 843a, 858a, 906a, 910a],
- [ 840a, 853a, 908a, 916a, 920a],
- [ 855a, 908a, 923a, 931a, 935a],
- [ 910a, 923a, 938a, 946a, 950a],
- [ 925a, 938a, 953a, 1001a, 1005a],
- [ 940a, 953a, 1008a, 1016a, 1020a],
- [ 955a, 1008a, 1023a, 1031a, 1035a],
- [ 1010a, 1023a, 1038a, 1046a, 1050a],
- [ 1025a, 1038a, 1053a, 1101a, 1105a],
- [ 1040a, 1053a, 1108a, 1116a, 1120a],
- [ 1055a, 1108a, 1123a, 1131a, 1135a],
- [ 1110a, 1123a, 1138a, 1146a, 1150a],
- [ 1125a, 1138a, 1153a, 1201p, 1205p],
- [ 1140a, 1153a, 1208p, 1216p, 1220p],
- [ 1155a, 1208p, 1223p, 1231p, 1235p],
- [ 1210p, 1223p, 1238p, 1246p, 1250p],
- [ 1225p, 1238p, 1253p, 101p, 105p],
- [ 1240p, 1253p, 108p, 116p, 120p],
- [ 1255p, 108p, 123p, 131p, 135p],
- [ 110p, 123p, 138p, 146p, 150p],
- [ 125p, 138p, 153p, 201p, 205p],
- [ 140p, 153p, 208p, 216p, 220p],
- [ 155p, 208p, 223p, 231p, 235p],
- [ 210p, 223p, 238p, 246p, 250p],
- [ 225p, 238p, 253p, 301p, 305p],
- [ 240p, 253p, 308p, 316p, 320p],
- [ 255p, 308p, 323p, 331p, 335p],
- [ 320p, 333p, 348p, 356p, 400p],
- [ 340p, 353p, 408p, 416p, 420p],
- [ 400p, 413p, 428p, 436p, 440p],
- [ 420p, 433p, 448p, 456p, 500p],
- [ 430p, 443p, 458p, 506p, 510p],
- [ 450p, 503p, 518p, 526p, 530p],
- [ 500p, 513p, 528p, 536p, 540p],
- [ 510p, 523p, 538p, 546p, 550p],
- [ 520p, 533p, 548p, 556p, 600p],
- [ 530p, 543p, 558p, 606p, 610p],
- [ 540p, 553p, 608p, 616p, 620p],
- [ 550p, 603p, 618p, 626p, 630p],
- [ 600p, 613p, 627p, 635p, 639p],
- [ 615p, 626p, 640p, 648p, 652p],
- [ 630p, 641p, 655p, 703p, 707p],
- [ 645p, 656p, 710p, 718p, 722p],
- [ 700p, 711p, 725p, 733p, 737p],
- [ 715p, 726p, 740p, 748p, 752p],
- [ 730p, 741p, 755p, 803p, 807p],
- [ 745p, 756p, 810p, 818p, 822p],
- [ 800p, 811p, 825p, 833p, 837p],
- [ 815p, 826p, 840p, 848p, 852p],
- [ 830p, 841p, 855p, 903p, 907p],
- [ 845p, 856p, 910p, 918p, 922p],
- [ 900p, 911p, 925p, 933p, 937p],
- [ 915p, 926p, 940p, 948p, 952p],
- [ 930p, 941p, 955p, 1003p, 1007p],
- [ 945p, 956p, 1010p, 1018p, 1022p],
- [ 1000p, 1011p, 1025p, 1033p, 1037p],
- [ 1015p, 1026p, 1040p, 1048p, 1052p],
- [ 1030p, 1041p, 1055p, 1103p, 1107p],
- [ 1045p, 1056p, 1110p, 1118p, 1122p],
- [ 1115p, 1126p, 1140p, 1148p, 1152p],
- [ 1150p, 1201x, 1215x, 1221x, 1225x],
- [ 1215x, 1226x, 1240x, 1248x, 1252x]
-]
-stop_times_saturday: [
- [ -, -, -, 602a, 605a],
- [ -, -, -, -, -],
- [ 605a, 616a, 628a, 634a, 637a],
- [ 620a, 631a, 643a, 649a, 652a],
- [ 635a, 646a, 658a, 704a, 707a],
- [ 650a, 701a, 713a, 719a, 722a],
- [ 705a, 716a, 728a, 734a, 737a],
- [ 720a, 731a, 743a, 749a, 752a],
- [ 735a, 746a, 758a, 804a, 807a],
- [ 750a, 801a, 813a, 819a, 822a],
- [ 805a, 816a, 828a, 834a, 837a],
- [ 820a, 831a, 843a, 849a, 852a],
- [ 835a, 846a, 858a, 904a, 907a],
- [ 850a, 901a, 913a, 919a, 922a],
- [ 905a, 916a, 928a, 934a, 937a],
- [ 920a, 931a, 943a, 949a, 952a],
- [ 935a, 946a, 958a, 1004a, 1007a],