tutmeister Posted October 9, 2011 Report 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
Moderators mark1million Posted October 9, 2011 Moderators Report 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
Administrators Nabeel Posted October 11, 2011 Administrators Report 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
tutmeister Posted October 12, 2011 Author Report Posted October 12, 2011 Ha, well I'm <i>incredibly</i> grateful, thanks Nabeel! 1 Quote
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.