{"action":"closed","issue":{"url":"https://api.github.com/repos/geertw/rdt-infoplus-dvs/issues/10","labels_url":"https://api.github.com/repos/geertw/rdt-infoplus-dvs/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/geertw/rdt-infoplus-dvs/issues/10/comments","events_url":"https://api.github.com/repos/geertw/rdt-infoplus-dvs/issues/10/events","html_url":"https://github.com/geertw/rdt-infoplus-dvs/issues/10","id":77143477,"number":10,"title":"Nieuw formaat DVS injecties","user":{"login":"geertw","id":683915,"avatar_url":"https://avatars.githubusercontent.com/u/683915?v=3","gravatar_id":"","url":"https://api.github.com/users/geertw","html_url":"https://github.com/geertw","followers_url":"https://api.github.com/users/geertw/followers","following_url":"https://api.github.com/users/geertw/following{/other_user}","gists_url":"https://api.github.com/users/geertw/gists{/gist_id}","starred_url":"https://api.github.com/users/geertw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geertw/subscriptions","organizations_url":"https://api.github.com/users/geertw/orgs","repos_url":"https://api.github.com/users/geertw/repos","events_url":"https://api.github.com/users/geertw/events{/privacy}","received_events_url":"https://api.github.com/users/geertw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geertw/rdt-infoplus-dvs/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"geertw","id":683915,"avatar_url":"https://avatars.githubusercontent.com/u/683915?v=3","gravatar_id":"","url":"https://api.github.com/users/geertw","html_url":"https://github.com/geertw","followers_url":"https://api.github.com/users/geertw/followers","following_url":"https://api.github.com/users/geertw/following{/other_user}","gists_url":"https://api.github.com/users/geertw/gists{/gist_id}","starred_url":"https://api.github.com/users/geertw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geertw/subscriptions","organizations_url":"https://api.github.com/users/geertw/orgs","repos_url":"https://api.github.com/users/geertw/repos","events_url":"https://api.github.com/users/geertw/events{/privacy}","received_events_url":"https://api.github.com/users/geertw/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-05-16T22:08:28Z","updated_at":"2015-05-25T11:03:33Z","closed_at":"2015-05-25T11:03:33Z","body":"Zie ook https://github.com/geertw/rdt-serviceinfo/issues/3, het formaat voor DVS injecties wordt uitgebreid en bevat nu Engelse veldnamen. Het bestaande injectieformaat komt hiermee te vervallen.\r\n\r\nIn de bestaande situatie wordt een Python dict via pyobj geserialized en via ZMQ verzonden. In de nieuwe situatie wordt een JSON string verzonden via ZMQ.\r\n\r\nHet nieuwe formaat wordt als volgt:\r\n```json\r\n{\r\n    \"company\": \"DB\",\r\n    \"departure\": \"2015-05-17T00:54:00+02:00\",\r\n    \"destination_code\": \"es\",\r\n    \"destination_text\": \"Enschede\",\r\n    \"do_not_board\": false,\r\n    \"platform\": null,\r\n    \"service_date\": \"2015-05-16\",\r\n    \"service_id\": \"42279\",\r\n    \"service_number\": \"20218\",\r\n    \"stop_code\": \"eop\",\r\n    \"stops\": [\r\n        [\r\n            \"g\",\r\n            \"Gronau Westf\"\r\n        ],\r\n        [\r\n            \"gbr\",\r\n            \"Glanerbrug\"\r\n        ],\r\n        [\r\n            \"ese\",\r\n            \"Enschede De Eschmarke\"\r\n        ],\r\n        [\r\n            \"es\",\r\n            \"Enschede\"\r\n        ]\r\n    ],\r\n    \"transmode_code\": \"ST\",\r\n    \"transmode_text\": \"stoptrein\",\r\n    \"via\": [\r\n        [\r\n            \"g\",\r\n            \"Gronau Westf\"\r\n        ],\r\n        [\r\n            \"gbr\",\r\n            \"Glanerbrug\"\r\n        ],\r\n        [\r\n            \"ese\",\r\n            \"Enschede De Eschmarke\"\r\n        ]\r\n    ]\r\n}\r\n```\r\n\r\nDe systematiek van het injecteren van een rit per vertrekstation blijft gehandhaafd. De injecterende applicatie (in de toekomst [rdt-serviceinfo](https://github.com/rdt-serviceinfo/)) selecteert de te injecteren ritten en voert periodiek de gewenste injecties uit.\r\n\r\nUit het bestaande formaat vervallen de volgende attributen:\r\n\r\n* service['stop_idx']\r\n* service['vervoerder_code']\r\n* service['variant']\r\n* service['attributes'], voor nu"}}