{"action":"created","issue":{"url":"https://api.github.com/repos/CanalTP/navitia/issues/1362","labels_url":"https://api.github.com/repos/CanalTP/navitia/issues/1362/labels{/name}","comments_url":"https://api.github.com/repos/CanalTP/navitia/issues/1362/comments","events_url":"https://api.github.com/repos/CanalTP/navitia/issues/1362/events","html_url":"https://github.com/CanalTP/navitia/issues/1362","id":125836183,"number":1362,"title":"Support empty stop times according to GTFS spec","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-10T18:24:28Z","updated_at":"2016-01-11T10:08:45Z","closed_at":null,"body":"The GTFS specification allows stop times to be empty as long as the first and the last stop have a time associated. This is currently not possible with Navitia. Stop times defined this way are just deleted with this warning:\r\n```\r\nsorting stoptimes of vehicle_journeys\r\ninvalid vj 4446_dst_1, the stop times are not correcly ordered stop time 1 [76500, 76500] stop time 2 [10799, 10799] we erase the VJ\r\ninvalid vj 4446_dst_2, the stop times are not correcly ordered stop time 1 [72900, 72900] stop time 2 [7199, 7199] we erase the VJ\r\n```\r\n\r\nThis is what the [GTFS specification](https://developers.google.com/transit/gtfs/reference#stop_times_fields) says about `stop_times.txt `:\r\n> If this stop isn't a time point, use an empty string value for the\r\n> *arrival_time* and *departure_time* fields. Stops without arrival times\r\n> will be scheduled based on the nearest preceding timed stop. To ensure\r\n> accurate routing, please provide arrival and departure times for all stops\r\n> that are time points. Do not interpolate stops.\r\n>\r\n> You must specify arrival and departure times for the first and last stops in a trip. \r\n\r\nSo in order to properly implement the GTFS format, Navitia should be able to handle empty stop times and interpolate the times as best as it can. A sample python implementation is available from [google/transitfeed](https://github.com/google/transitfeed/blob/master/transitfeed/trip.py#L169)."},"comment":{"url":"https://api.github.com/repos/CanalTP/navitia/issues/comments/170497456","html_url":"https://github.com/CanalTP/navitia/issues/1362#issuecomment-170497456","issue_url":"https://api.github.com/repos/CanalTP/navitia/issues/1362","id":170497456,"user":{"login":"TeXitoi","id":5787066,"avatar_url":"https://avatars.githubusercontent.com/u/5787066?v=3","gravatar_id":"","url":"https://api.github.com/users/TeXitoi","html_url":"https://github.com/TeXitoi","followers_url":"https://api.github.com/users/TeXitoi/followers","following_url":"https://api.github.com/users/TeXitoi/following{/other_user}","gists_url":"https://api.github.com/users/TeXitoi/gists{/gist_id}","starred_url":"https://api.github.com/users/TeXitoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeXitoi/subscriptions","organizations_url":"https://api.github.com/users/TeXitoi/orgs","repos_url":"https://api.github.com/users/TeXitoi/repos","events_url":"https://api.github.com/users/TeXitoi/events{/privacy}","received_events_url":"https://api.github.com/users/TeXitoi/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T10:08:45Z","updated_at":"2016-01-11T10:08:45Z","body":"No, the spec that you quote say explicitly to _not_ interpolate! If we support this kind of stop times, we will not interpolate."}}