{"action":"created","issue":{"url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2184","labels_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2184/labels{/name}","comments_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2184/comments","events_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2184/events","html_url":"https://github.com/opentripplanner/OpenTripPlanner/issues/2184","id":120547322,"number":2184,"title":"Embed the router configuration in the graph","user":{"login":"ustroetz","id":4493762,"avatar_url":"https://avatars.githubusercontent.com/u/4493762?v=3","gravatar_id":"","url":"https://api.github.com/users/ustroetz","html_url":"https://github.com/ustroetz","followers_url":"https://api.github.com/users/ustroetz/followers","following_url":"https://api.github.com/users/ustroetz/following{/other_user}","gists_url":"https://api.github.com/users/ustroetz/gists{/gist_id}","starred_url":"https://api.github.com/users/ustroetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ustroetz/subscriptions","organizations_url":"https://api.github.com/users/ustroetz/orgs","repos_url":"https://api.github.com/users/ustroetz/repos","events_url":"https://api.github.com/users/ustroetz/events{/privacy}","received_events_url":"https://api.github.com/users/ustroetz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"abyrd","id":112871,"avatar_url":"https://avatars.githubusercontent.com/u/112871?v=3","gravatar_id":"","url":"https://api.github.com/users/abyrd","html_url":"https://github.com/abyrd","followers_url":"https://api.github.com/users/abyrd/followers","following_url":"https://api.github.com/users/abyrd/following{/other_user}","gists_url":"https://api.github.com/users/abyrd/gists{/gist_id}","starred_url":"https://api.github.com/users/abyrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abyrd/subscriptions","organizations_url":"https://api.github.com/users/abyrd/orgs","repos_url":"https://api.github.com/users/abyrd/repos","events_url":"https://api.github.com/users/abyrd/events{/privacy}","received_events_url":"https://api.github.com/users/abyrd/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/milestones/4","html_url":"https://github.com/opentripplanner/OpenTripPlanner/milestones/1.0.0%20release","labels_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/milestones/4/labels","id":52814,"number":4,"title":"1.0.0 release","description":"Now that ride.trimet.org is released and OTP is in use in many cities and as a backend for several smartphone apps, we are preparing to tag OTP version 1.0. This release should incorporate the new directory structure, standalone mode, park-and-ride, and real-time updates. A 1.0 release implies a stable API, so care should be taken to clean up any loose ends before the release. This includes the new transit data API that emerged from the profile routing work.","creator":{"login":"fpurcell","id":64323,"avatar_url":"https://avatars.githubusercontent.com/u/64323?v=3","gravatar_id":"","url":"https://api.github.com/users/fpurcell","html_url":"https://github.com/fpurcell","followers_url":"https://api.github.com/users/fpurcell/followers","following_url":"https://api.github.com/users/fpurcell/following{/other_user}","gists_url":"https://api.github.com/users/fpurcell/gists{/gist_id}","starred_url":"https://api.github.com/users/fpurcell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpurcell/subscriptions","organizations_url":"https://api.github.com/users/fpurcell/orgs","repos_url":"https://api.github.com/users/fpurcell/repos","events_url":"https://api.github.com/users/fpurcell/events{/privacy}","received_events_url":"https://api.github.com/users/fpurcell/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":36,"state":"open","created_at":"2011-11-04T18:46:13Z","updated_at":"2015-12-05T11:09:41Z","due_on":"2015-12-17T23:00:00Z","closed_at":null},"comments":5,"created_at":"2015-12-05T11:03:44Z","updated_at":"2015-12-05T17:57:19Z","closed_at":null,"body":"I have an OTP server running with:\r\n```\r\njava -Xmx6G -jar otp-0.19.0-shaded.jar --server --insecure\r\n```\r\nNext I build a graph with:\r\n```\r\njava -Xmx6G -jar otp-0.19.0-shaded.jar --build /data\r\n```\r\nMy data dir contains Portland's GTFS file and a `router-config.json` which contains the following:\r\n```\r\n{\r\n    \"updaters\": [{\r\n        \"url\": \"http://developer.trimet.org/ws/V1/FeedSpecAlerts/appID/7AD4C25BABC8B017651A55C18\",\r\n        \"frequencySec\": 30,\r\n        \"defaultAgencyId\": \"TRIMET\",\r\n        \"type\": \"real-time-alerts\"\r\n    }]\r\n}\r\n```\r\n\r\nThe `router-config.json` is picked up on graph build:\r\n```\r\nFound and loaded JSON configuration file '/data/router-config.json'\r\n```\r\n\r\n\r\nNext I post the graph to my local server:\r\n```\r\ncurl -T Graph.obj  -H \"Content-Type: application/octet-stream\" -X POST http://localhost:8080/otp/routers/test\r\n```\r\nThe OTP server logs:\r\n```\r\nINFO (GraphService.java:190) Registering new router 'test'\r\nINFO (Router.java:84) No default routing parameters were found in the router config JSON. Using built-in OTP defaults.\r\nINFO (Router.java:111) Timeouts for router 'test': [5.0, 2.0, 1.0, 0.5, 0.1]\r\nINFO (GraphUpdaterConfigurator.java:57) Using configurations: [main]\r\n```\r\n\r\nOTP doesn't seem to pick up the router-configuration specified in the graph. I assume I have to specify it in a different way. Is there a way to add GTFS-RT to a running OTP instance?\r\n\r\nI know there is the option to put the `router-config.json` on the graphs directory of the OTP server and PUT a graph there. But is there a way to send the router-config.json along with a new graph?\r\n\r\nIf you point me to the right resources or give me some hints, I will send a PR with updated documentation.\r\n"},"comment":{"url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/comments/162230974","html_url":"https://github.com/opentripplanner/OpenTripPlanner/issues/2184#issuecomment-162230974","issue_url":"https://api.github.com/repos/opentripplanner/OpenTripPlanner/issues/2184","id":162230974,"user":{"login":"laurentg","id":959548,"avatar_url":"https://avatars.githubusercontent.com/u/959548?v=3","gravatar_id":"","url":"https://api.github.com/users/laurentg","html_url":"https://github.com/laurentg","followers_url":"https://api.github.com/users/laurentg/followers","following_url":"https://api.github.com/users/laurentg/following{/other_user}","gists_url":"https://api.github.com/users/laurentg/gists{/gist_id}","starred_url":"https://api.github.com/users/laurentg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurentg/subscriptions","organizations_url":"https://api.github.com/users/laurentg/orgs","repos_url":"https://api.github.com/users/laurentg/repos","events_url":"https://api.github.com/users/laurentg/events{/privacy}","received_events_url":"https://api.github.com/users/laurentg/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T17:57:19Z","updated_at":"2015-12-05T17:57:19Z","body":"@ustroetz You can use this [tentative fix](https://github.com/opentripplanner/OpenTripPlanner/compare/master...laurentg:embed-router-config?expand=1). Be careful, I did not had time to test it or even run it, so test it well (in particular with an without a router config)."}}