tutmeister Posted October 9, 2011 Report Share Posted October 9, 2011 I've looked through SchedulesData, but no luck in finding anything that gives you the duration of a route. It can probably be done through subtracting the departure time from the arrival time, but then if it goes over midnight the code gets a lot more complicated and I was wondering if there is an API function for this already. So route duration in either minutes or hours? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted October 9, 2011 Moderators Report Share Posted October 9, 2011 Yes there is you can use as i do in the schedules results, <td align="center"><strong><?php echo $route->flighttime;?> </strong></td> Quote Link to comment Share on other sites More sharing options...
tutmeister Posted October 9, 2011 Author Report Share Posted October 9, 2011 Great, thanks Mark! Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted October 11, 2011 Administrators Report Share Posted October 11, 2011 I've looked through SchedulesData, but no luck in finding anything that gives you the duration of a route. It can probably be done through subtracting the departure time from the arrival time, but then if it goes over midnight the code gets a lot more complicated and I was wondering if there is an API function for this already. So route duration in either minutes or hours? It gets incredibly complicated,,, that's why I added that field as mark pointed out Quote Link to comment Share on other sites More sharing options...
tutmeister Posted October 12, 2011 Author Report Share Posted October 12, 2011 Ha, well I'm <i>incredibly</i> grateful, thanks Nabeel! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.