{"action":"created","issue":{"url":"https://api.github.com/repos/brendannee/node-gtfs/issues/40","labels_url":"https://api.github.com/repos/brendannee/node-gtfs/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/brendannee/node-gtfs/issues/40/comments","events_url":"https://api.github.com/repos/brendannee/node-gtfs/issues/40/events","html_url":"https://github.com/brendannee/node-gtfs/issues/40","id":115683139,"number":40,"title":"Multiple Agencies","user":{"login":"dfairaizl","id":663205,"avatar_url":"https://avatars.githubusercontent.com/u/663205?v=3","gravatar_id":"","url":"https://api.github.com/users/dfairaizl","html_url":"https://github.com/dfairaizl","followers_url":"https://api.github.com/users/dfairaizl/followers","following_url":"https://api.github.com/users/dfairaizl/following{/other_user}","gists_url":"https://api.github.com/users/dfairaizl/gists{/gist_id}","starred_url":"https://api.github.com/users/dfairaizl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfairaizl/subscriptions","organizations_url":"https://api.github.com/users/dfairaizl/orgs","repos_url":"https://api.github.com/users/dfairaizl/repos","events_url":"https://api.github.com/users/dfairaizl/events{/privacy}","received_events_url":"https://api.github.com/users/dfairaizl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-07T18:25:03Z","updated_at":"2015-12-04T02:39:48Z","closed_at":null,"body":"Hey there,\r\n\r\nI was attempting to use this npm module to import the transit data for the various lines here in NYC, everything was working great until I came upon the [Metro-North](http://transitfeeds.com/p/mta/87/latest/agencies) lines which have multiple agencies, leading unfortunately to them all being imported with the same `agency_key`. \r\n\r\nThere are a few options to solve this but I wanted to get your opinion. I'm happy to submit a PR but am not sure the best way to support multiple agencies since `agency_key` is used so heavily throughout the queries."},"comment":{"url":"https://api.github.com/repos/brendannee/node-gtfs/issues/comments/161856091","html_url":"https://github.com/brendannee/node-gtfs/issues/40#issuecomment-161856091","issue_url":"https://api.github.com/repos/brendannee/node-gtfs/issues/40","id":161856091,"user":{"login":"leanne63","id":7043045,"avatar_url":"https://avatars.githubusercontent.com/u/7043045?v=3","gravatar_id":"","url":"https://api.github.com/users/leanne63","html_url":"https://github.com/leanne63","followers_url":"https://api.github.com/users/leanne63/followers","following_url":"https://api.github.com/users/leanne63/following{/other_user}","gists_url":"https://api.github.com/users/leanne63/gists{/gist_id}","starred_url":"https://api.github.com/users/leanne63/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leanne63/subscriptions","organizations_url":"https://api.github.com/users/leanne63/orgs","repos_url":"https://api.github.com/users/leanne63/repos","events_url":"https://api.github.com/users/leanne63/events{/privacy}","received_events_url":"https://api.github.com/users/leanne63/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T02:39:47Z","updated_at":"2015-12-04T02:39:47Z","body":"I'm running the tests provided with gtfs-node. They're failing because the test agency has only one agency, but that agency DOES have an `agency_id`.\r\n\r\nNoting @brendannee quote:\r\n>Most GTFS files have only one agency so this hasn't come up until now.\r\nmakes sense, as files with a single agency should have an empty string in the `agency_id` field.\r\n\r\nSo, question: are we safe assuming a default empty string for the `agency_id`? (if so, we probably want to change the test data for that assumption.)\r\n\r\nOr, shall I create new functions that require an `agency_id` to be passed?"}}