Skip to content

Commit

Permalink
Default to agency ID of 1 for agencies without ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
flibbertigibbet committed Oct 8, 2014
1 parent 3d9f526 commit 7345997
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ object AgencyFile extends GtfsFile[Agency] {
for (s <- CsvParser.fromPath(path)) {
agencies +=
Agency(
id = s("agency_id").get.intern,
id = s("agency_id").getOrElse[String]("1"),
name = s("agency_name").get,
url = s("agency_url").get,
timezone = s("agency_timezone").get,
Expand Down

0 comments on commit 7345997

Please sign in to comment.