{"action":"created","issue":{"url":"https://api.github.com/repos/CanalTP/navitia/issues/1386","repository_url":"https://api.github.com/repos/CanalTP/navitia","labels_url":"https://api.github.com/repos/CanalTP/navitia/issues/1386/labels{/name}","comments_url":"https://api.github.com/repos/CanalTP/navitia/issues/1386/comments","events_url":"https://api.github.com/repos/CanalTP/navitia/issues/1386/events","html_url":"https://github.com/CanalTP/navitia/issues/1386","id":128212132,"number":1386,"title":"Add physical_mode to departures and stop_schedules","user":{"login":"grote","id":244947,"avatar_url":"https://avatars.githubusercontent.com/u/244947?v=3","gravatar_id":"","url":"https://api.github.com/users/grote","html_url":"https://github.com/grote","followers_url":"https://api.github.com/users/grote/followers","following_url":"https://api.github.com/users/grote/following{/other_user}","gists_url":"https://api.github.com/users/grote/gists{/gist_id}","starred_url":"https://api.github.com/users/grote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grote/subscriptions","organizations_url":"https://api.github.com/users/grote/orgs","repos_url":"https://api.github.com/users/grote/repos","events_url":"https://api.github.com/users/grote/events{/privacy}","received_events_url":"https://api.github.com/users/grote/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CanalTP/navitia/labels/enhancement","name":"enhancement","color":"D6AD99"},{"url":"https://api.github.com/repos/CanalTP/navitia/labels/interface","name":"interface","color":"FF33CC"},{"url":"https://api.github.com/repos/CanalTP/navitia/labels/pt_schedule","name":"pt_schedule","color":"6600FF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-22T18:14:23Z","updated_at":"2016-05-20T01:43:55Z","closed_at":null,"body":"When querying for [departures](https://github.com/CanalTP/navitia/blob/dev/documentation/navitia.io/source/integration.rst#departures-departures) I need to know the physical mode of each departure to show it properly in my app.\r\n\r\nWould it be possible to include a [`physical_mode` object](https://github.com/CanalTP/navitia/blob/dev/documentation/navitia.io/source/integration.rst#physical-mode) in the response to `departures` and `stop_schedules` queries?\r\n\r\nAlternatively, I could of course make separate requests to get the physical mode for *each* \r\ndeparture. But I guess it is also in your interest to not require users to make unnecessary excessive queries to your service."},"comment":{"url":"https://api.github.com/repos/CanalTP/navitia/issues/comments/220497236","html_url":"https://github.com/CanalTP/navitia/issues/1386#issuecomment-220497236","issue_url":"https://api.github.com/repos/CanalTP/navitia/issues/1386","id":220497236,"user":{"login":"grote","id":244947,"avatar_url":"https://avatars.githubusercontent.com/u/244947?v=3","gravatar_id":"","url":"https://api.github.com/users/grote","html_url":"https://github.com/grote","followers_url":"https://api.github.com/users/grote/followers","following_url":"https://api.github.com/users/grote/following{/other_user}","gists_url":"https://api.github.com/users/grote/gists{/gist_id}","starred_url":"https://api.github.com/users/grote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grote/subscriptions","organizations_url":"https://api.github.com/users/grote/orgs","repos_url":"https://api.github.com/users/grote/repos","events_url":"https://api.github.com/users/grote/events{/privacy}","received_events_url":"https://api.github.com/users/grote/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T01:43:55Z","updated_at":"2016-05-20T01:43:55Z","body":"Has this secretly been fixed?\r\n\r\nA query like this `http://api.navitia.io/v1/coverage/fr-idf/stop_areas/stop_area:OIF:SA:8775862/departures?from_datetime=20160519T223512&count=12&duration=86400&depth=0` now returns a list of departures that has a `route` and in this route seem always to be `physical_modes` like this:\r\n\r\n```json\r\n                \"physical_modes\": [\r\n                    {\r\n                        \"id\": \"physical_mode:Bus\",\r\n                        \"name\": \"Bus\"\r\n                    }\r\n                ]\r\n```\r\n\r\n```json\r\n                \"physical_modes\": [\r\n                    {\r\n                        \"id\": \"physical_mode:RapidTransit\",\r\n                        \"name\": \"Train de banlieue / RER\"\r\n                    }\r\n                ]\r\n```\r\n\r\nIs this now reliable and stable for all `/departures` queries?"}}
{"actor":{"display_login":"grote"}}