Closed PolMrt closed 6 years ago
Hello π I have this request : https://api.irail.be/connections/?from=BE.NMBS.008863008&to=BE.NMBS.008863404&date=020718&time=1747×el=departure&format=json&lang=fr&fast=false&typeOfTransport=trains&alerts=true. We can see that I want to get train from BE.NMBS.008863008 (aka Namur) to BE.NMBS.008863404 (aka Andenne) at 17:47 and the result is pretty weird:
https://api.irail.be/connections/?from=BE.NMBS.008863008&to=BE.NMBS.008863404&date=020718&time=1747×el=departure&format=json&lang=fr&fast=false&typeOfTransport=trains&alerts=true
BE.NMBS.008863008
BE.NMBS.008863404
We can see the timestamp is 1530546708 = 2/7/2018 - 17:51:48 : it's good π But the time depart for the first result is 1530539460 = 2/7/2018 - 15:51:00 : it's strange π
1530546708
1530539460
All the JSON result:
{"version":"1.1","timestamp":"1530546708","connection":[{"id":"0","departure":{"delay":"420","station":"Namur","stationinfo":{"id":"BE.NMBS.008863008","locationX":"4.86222","locationY":"50.468794","@id":"http://irail.be/stations/NMBS/008863008","standardname":"Namur","name":"Namur"},"time":"1530539460","vehicle":"BE.NMBS.IC3814","platform":"3","platforminfo":{"name":"3","normal":"0"},"canceled":"0","departureConnection":"http://irail.be/connections/8863008/20180702/IC3814","direction":{"name":"Liege-Palais"},"left":"1","walking":"0","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},"arrival":{"delay":"480","station":"Andenne","stationinfo":{"id":"BE.NMBS.008863404","locationX":"5.094699","locationY":"50.496759","@id":"http://irail.be/stations/NMBS/008863404","standardname":"Andenne","name":"Andenne"},"time":"1530540240","vehicle":"BE.NMBS.IC3814","platform":"2","platforminfo":{"name":"2","normal":"1"},"canceled":"0","direction":{"name":"Liege-Palais"},"arrived":"1","walking":"0"},"duration":"780","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},{"id":"1","departure":{"delay":"0","station":"Namur","stationinfo":{"id":"BE.NMBS.008863008","locationX":"4.86222","locationY":"50.468794","@id":"http://irail.be/stations/NMBS/008863008","standardname":"Namur","name":"Namur"},"time":"1530541080","vehicle":"BE.NMBS.IC2415","platform":"11","platforminfo":{"name":"11","normal":"1"},"canceled":"0","departureConnection":"http://irail.be/connections/8863008/20180702/IC2415","direction":{"name":"Liege-Palais"},"left":"1","walking":"0","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},"arrival":{"delay":"120","station":"Andenne","stationinfo":{"id":"BE.NMBS.008863404","locationX":"5.094699","locationY":"50.496759","@id":"http://irail.be/stations/NMBS/008863404","standardname":"Andenne","name":"Andenne"},"time":"1530541860","vehicle":"BE.NMBS.IC2415","platform":"2","platforminfo":{"name":"2","normal":"1"},"canceled":"0","direction":{"name":"Liege-Palais"},"arrived":"1","walking":"0"},"duration":"780","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},{"id":"2","departure":{"delay":"120","station":"Namur","stationinfo":{"id":"BE.NMBS.008863008","locationX":"4.86222","locationY":"50.468794","@id":"http://irail.be/stations/NMBS/008863008","standardname":"Namur","name":"Namur"},"time":"1530541620","vehicle":"BE.NMBS.L4966","platform":"3","platforminfo":{"name":"3","normal":"1"},"canceled":"0","departureConnection":"http://irail.be/connections/8863008/20180702/L4966","direction":{"name":"Liege-Guillemins"},"left":"1","walking":"0","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},"arrival":{"delay":"0","station":"Andenne","stationinfo":{"id":"BE.NMBS.008863404","locationX":"5.094699","locationY":"50.496759","@id":"http://irail.be/stations/NMBS/008863404","standardname":"Andenne","name":"Andenne"},"time":"1530542820","vehicle":"BE.NMBS.L4966","platform":"2","platforminfo":{"name":"2","normal":"1"},"canceled":"0","direction":{"name":"Liege-Guillemins"},"arrived":"1","walking":"0"},"duration":"1200","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},{"id":"3","departure":{"delay":"180","station":"Namur","stationinfo":{"id":"BE.NMBS.008863008","locationX":"4.86222","locationY":"50.468794","@id":"http://irail.be/stations/NMBS/008863008","standardname":"Namur","name":"Namur"},"time":"1530543060","vehicle":"BE.NMBS.IC3815","platform":"4","platforminfo":{"name":"4","normal":"1"},"canceled":"0","departureConnection":"http://irail.be/connections/8863008/20180702/IC3815","direction":{"name":"Liege-Palais"},"left":"1","walking":"0","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},"arrival":{"delay":"180","station":"Andenne","stationinfo":{"id":"BE.NMBS.008863404","locationX":"5.094699","locationY":"50.496759","@id":"http://irail.be/stations/NMBS/008863404","standardname":"Andenne","name":"Andenne"},"time":"1530543840","vehicle":"BE.NMBS.IC3815","platform":"2","platforminfo":{"name":"2","normal":"1"},"canceled":"0","direction":{"name":"Liege-Palais"},"arrived":"1","walking":"0"},"duration":"780","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},{"id":"4","departure":{"delay":"180","station":"Namur","stationinfo":{"id":"BE.NMBS.008863008","locationX":"4.86222","locationY":"50.468794","@id":"http://irail.be/stations/NMBS/008863008","standardname":"Namur","name":"Namur"},"time":"1530544680","vehicle":"BE.NMBS.IC2416","platform":"11","platforminfo":{"name":"11","normal":"1"},"canceled":"0","departureConnection":"http://irail.be/connections/8863008/20180702/IC2416","direction":{"name":"Liege-Palais"},"left":"1","walking":"0","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},"arrival":{"delay":"240","station":"Andenne","stationinfo":{"id":"BE.NMBS.008863404","locationX":"5.094699","locationY":"50.496759","@id":"http://irail.be/stations/NMBS/008863404","standardname":"Andenne","name":"Andenne"},"time":"1530545460","vehicle":"BE.NMBS.IC2416","platform":"2","platforminfo":{"name":"2","normal":"1"},"canceled":"0","direction":{"name":"Liege-Palais"},"arrived":"1","walking":"0"},"duration":"780","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},{"id":"5","departure":{"delay":"180","station":"Namur","stationinfo":{"id":"BE.NMBS.008863008","locationX":"4.86222","locationY":"50.468794","@id":"http://irail.be/stations/NMBS/008863008","standardname":"Namur","name":"Namur"},"time":"1530545220","vehicle":"BE.NMBS.L4967","platform":"3","platforminfo":{"name":"3","normal":"1"},"canceled":"0","departureConnection":"http://irail.be/connections/8863008/20180702/L4967","direction":{"name":"Liege-Guillemins"},"left":"1","walking":"0","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}},"arrival":{"delay":"180","station":"Andenne","stationinfo":{"id":"BE.NMBS.008863404","locationX":"5.094699","locationY":"50.496759","@id":"http://irail.be/stations/NMBS/008863404","standardname":"Andenne","name":"Andenne"},"time":"1530546420","vehicle":"BE.NMBS.L4967","platform":"2","platforminfo":{"name":"2","normal":"1"},"canceled":"0","direction":{"name":"Liege-Guillemins"},"arrived":"1","walking":"0"},"duration":"1200","occupancy":{"@id":"http://api.irail.be/terms/unknown","name":"unknown"}}]}
Moved to the API repo: https://github.com/iRail/iRail/issues/352
Hello π I have this request :
https://api.irail.be/connections/?from=BE.NMBS.008863008&to=BE.NMBS.008863404&date=020718&time=1747×el=departure&format=json&lang=fr&fast=false&typeOfTransport=trains&alerts=true
. We can see that I want to get train fromBE.NMBS.008863008
(aka Namur) toBE.NMBS.008863404
(aka Andenne) at 17:47 and the result is pretty weird:We can see the timestamp is
1530546708
= 2/7/2018 - 17:51:48 : it's good π But the time depart for the first result is1530539460
= 2/7/2018 - 15:51:00 : it's strange πAll the JSON result: