Open francot opened 2 years ago
Thanks @francot ... looking into this.
BTW, do you have the postgres database installed on your machine (docs could be better here)
Thank you @fpurcell
Yes a Postgres database is installed on my machine.
But as I already write the command buildout install prod pg
doesn't work for me.
Also I think you have to specify that first to run: bin/gtfsrt-load -a TRIMET -d postgresql+psycopg2://ott@127.0.0.1:5432/ott --api_key -c
(not bin/gtfsdb-rt-loader -a TRIMET -d postgresql+psycopg2://ott@127.0.0.1:5432/ott --api_key -c
as you write in documentation) you have to import the static gtfs using gtfsdb. The correct sequence could be:
Run TriMet example:
: bin/gtfsdb-load --database_url postgresql://postgres:postgres@localhost:5432/dbname --schema trimet --is_geospatial local filename
bin/gtfsrt-load -a TRIMET -d postgresql+psycopg2://postgres:postgres@localhost:5432/dbname --api_key apikey
(without c because table are already created in step 3)
Edit documentation to make it clearer. For example this is my experience and I cannot use the application to test trimet data.
Install and use via the gtfsdb source tree:
easy_install zc.buildout
okbuildout
ok(buildout install prod pg
returnError: The referenced section, 'pg', was not defined.
)Run TriMet example:
bin/gtfsdb-rt-loader -a TRIMET -d postgresql+psycopg2://ott@127.0.0.1:5432/ott --api_key -c
bin/gtfsdb-rt-loader doesn't exists I try to runbin/gtfsrt-load -a TRIMET -d postgresql+psycopg2://ott@127.0.0.1:5432/ott --api_key -c
but the script doesn't create the table trimet.routes so i get errorrelation "trimet.routes" doesn't exist
@fpurcell