Skip to content

Commit

Permalink
first draft of html doco
Browse files Browse the repository at this point in the history
  • Loading branch information
javacolin committed Jan 19, 2010
1 parent efaab57 commit 79795aa
Show file tree
Hide file tree
Showing 7 changed files with 167 additions and 0 deletions.
24 changes: 24 additions & 0 deletions html/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<html>

<head>
<title>GTFS SQL Importer Contact</title>
<link rel="stylesheet" type="text/css" href="css.css"/>
</head>


<body>
<iframe src ="nav.html" id="nav">
<p>Your browser does not support iframes. Navigate from <a href="nav.html">here</a>.</p>
</iframe>
<h2>Contact</h2>
<hr>
<p>
Email: <br>
&nbsp;<img src="images/email.gif"><br>
Please include "gtfs sql" in the subject.
</p>

</body>


</html>
38 changes: 38 additions & 0 deletions html/css.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
html{
font-family:arial;
}

#nav{
width:250px;
border:none;
border-right:1px solid black;
float:left;
height:100%;
margin-right:20px;
}

#content{
border:1px solid black;
float:left;

}
table{
position:static;
border:0px solid red;
}

table td{
vertical-align:top;
}

hr{
border:1px solid black;
}

a{
color:blue;
text-decoration:none;
}

ul{
}
23 changes: 23 additions & 0 deletions html/download.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<html>

<head>
<title>GTFS SQL Importer Download</title>
<link rel="stylesheet" type="text/css" href="css.css"/>
</head>


<body>
<iframe src ="nav.html" id="nav">
<p>Your browser does not support iframes. Navigate from <a href="nav.html">here</a>.</p>
</iframe>
<h2>Download</h2>
<hr>

<p>Download the source <a href="http://github.com/cbick/gtfs_SQL_importer/archives/master">here</a>.</p>

<p>Go to git source on github <a href="http://github.com/cbick/gtfs_SQL_importer">here</a>.</p>

</body>


</html>
Binary file added html/images/email.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<html>
<head>

<title>GTFS SQL Importer</title>
<link rel="stylesheet" type="text/css" href="css.css"/>

</head>

<body>

<iframe src ="nav.html" id="nav">
<p>Your browser does not support iframes. Navigate from <a href="nav.html">here</a>.</p>
</iframe>

<h2>GTFS SQL Import Tool</h2>
<hr>


<h3>A Small Python Tool for Importing GTFS Data into SQL</h3>

<table width="50%"><tr><td>
<p>
This is a small utility for quickly and easily importing GTFS data into a SQL (i.e. relational) database. It is released under the MIT license.
</p>


<h3>Using GTFS SQL Importer</h3>
The code below shows how to import some data from a bash prompt.
<code><pre>

cat gtfs_tables.sql \
&lt;(python import_gtfs_to_sql.py path/to/gtfs/data/directory) \
gtfs_tables_makeindexes.sql \
vacuumer.sql \
| psql mydbname myusername

</pre></code>

<p>
Most GTFS data has errors in it, so you will likely encounter an error when
running the step above. After fixing the error by manually correcting the GTFS
files, you can simply repeat the command (which will likely break again, and
so on).
</p>

<p>
If you don't have PostgreSQL, then the python line should be as follows:<br>
<code>&lt;(python import_gtfs_to_sql.py path/to/gtfs/data/directory nocopy)</code><br>
This will use "INSERT" statements instead of "COPY" statements.
Also, I believe the vacuumer.sql file is also postgres specific, so omit it if
it gives errors.
</p>


<h3>Links</h3>

<a href="http://code.google.com/transit/spec/transit_feed_specification.html">GTFS (General Transit Feed Specification)</a><br>

<a href="http://code.google.com/p/googletransitdatafeed/wiki/PublicFeeds">List of Public GTFS feeds</a>

</tr></td></table>
</body>
</html>
12 changes: 12 additions & 0 deletions html/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="css.css"/>
</head>
<body>
<ul>
<li><a href="index.html" target="_parent">Home</a></li>
<li><a href="download.html" target="_parent">Download</a></li>
<li><a href="contact.html" target="_parent">Contact</a></li>
</ul>
</body>
</html>
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<head><title>GTFS SQL Importer</title>
<meta http-equiv="refresh" content="0;url=http://cbick.github.com/gtfs_SQL_importer/html/index.html" />
</head>
<body>
</body>
</html>

0 comments on commit 79795aa

Please sign in to comment.