-
-
Save amitlzkpa/5b1402cc34ef39e28f35120a49e49227 to your computer and use it in GitHub Desktop.
Import GTFS data to MongoDB
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
mongoimport --db <dbname> --collection agencies --type csv --headerline --file agency.txt | |
mongoimport --db <dbname> --collection calendardates --type csv --headerline --file calendar_dates.txt | |
mongoimport --db <dbname> --collection calendars --type csv --headerline --file calendar.txt | |
mongoimport --db <dbname> --collection routes --type csv --headerline --file routes.txt | |
mongoimport --db <dbname> --collection stoptimes --type csv --headerline --file stop_times.txt | |
mongoimport --db <dbname> --collection stops --type csv --headerline --file stops.txt | |
mongoimport --db <dbname> --collection trips --type csv --headerline --file trips.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment