-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
javacolin
committed
Jan 19, 2010
1 parent
efaab57
commit 79795aa
Showing
7 changed files
with
167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
<img src="images/email.gif"><br> | ||
Please include "gtfs sql" in the subject. | ||
</p> | ||
|
||
</body> | ||
|
||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ | ||
<(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><(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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |