{"action":"created","issue":{"url":"https://api.github.com/repos/horsemeat/dublin-bus-tracker/issues/7","labels_url":"https://api.github.com/repos/horsemeat/dublin-bus-tracker/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/horsemeat/dublin-bus-tracker/issues/7/comments","events_url":"https://api.github.com/repos/horsemeat/dublin-bus-tracker/issues/7/events","html_url":"https://github.com/horsemeat/dublin-bus-tracker/issues/7","id":65186345,"number":7,"title":"Enhance the server data response","user":{"login":"tabman83","id":1732701,"avatar_url":"https://avatars.githubusercontent.com/u/1732701?v=3","gravatar_id":"","url":"https://api.github.com/users/tabman83","html_url":"https://github.com/tabman83","followers_url":"https://api.github.com/users/tabman83/followers","following_url":"https://api.github.com/users/tabman83/following{/other_user}","gists_url":"https://api.github.com/users/tabman83/gists{/gist_id}","starred_url":"https://api.github.com/users/tabman83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabman83/subscriptions","organizations_url":"https://api.github.com/users/tabman83/orgs","repos_url":"https://api.github.com/users/tabman83/repos","events_url":"https://api.github.com/users/tabman83/events{/privacy}","received_events_url":"https://api.github.com/users/tabman83/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-30T10:54:12Z","updated_at":"2015-03-30T11:07:39Z","closed_at":null,"body":"The server should return an array of objects.\r\n\r\nEach elements of the array should be objects like this:\r\n```\r\n{\r\n    busName: \"41c\", // all lowercase\r\n    stopId: \"3605\",\r\n    expectedTime: \"2015-03-30T22:44:30.652Z\", // ISO8601\r\n    expectedWait: \"PT22M\" // ISO8601\r\n}\r\n```\r\n\r\nbusName and stopId might be useful for future improvements like multiple bus/stop monitorings.\r\n\r\nThe expectedWait will be calulated server side by moment.js which takes care of the ISO8601 serialization as well.\r\nThe expectedTime might be useful to just display the time of arrival when the awaiting time exceeds a certain amount.\r\n\r\nComments are welcome."},"comment":{"url":"https://api.github.com/repos/horsemeat/dublin-bus-tracker/issues/comments/87636583","html_url":"https://github.com/horsemeat/dublin-bus-tracker/issues/7#issuecomment-87636583","issue_url":"https://api.github.com/repos/horsemeat/dublin-bus-tracker/issues/7","id":87636583,"user":{"login":"lupino3","id":200139,"avatar_url":"https://avatars.githubusercontent.com/u/200139?v=3","gravatar_id":"","url":"https://api.github.com/users/lupino3","html_url":"https://github.com/lupino3","followers_url":"https://api.github.com/users/lupino3/followers","following_url":"https://api.github.com/users/lupino3/following{/other_user}","gists_url":"https://api.github.com/users/lupino3/gists{/gist_id}","starred_url":"https://api.github.com/users/lupino3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lupino3/subscriptions","organizations_url":"https://api.github.com/users/lupino3/orgs","repos_url":"https://api.github.com/users/lupino3/repos","events_url":"https://api.github.com/users/lupino3/events{/privacy}","received_events_url":"https://api.github.com/users/lupino3/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T11:07:39Z","updated_at":"2015-03-30T11:07:39Z","body":"Sounds good!"}}