Drcodyjones Posted July 17, 2012 Report Share Posted July 17, 2012 Hey guys, For some reason, all of a sudden, when adding a schedule and calculating the distance, it is always "6083.70091069". This occurs no matter what the distance between the two airfields are. Can anybody help me? I can provide screenshots upon request. Thanks Cody Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted July 17, 2012 Moderators Report Share Posted July 17, 2012 It's just the calculation. You can round it up in the templates area where the schedule is. Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted July 17, 2012 Moderators Report Share Posted July 17, 2012 This is an example how to round up the distance in the schedule_results.tpl <?php echo round($route->distance . Config::Get('UNITS'));?> Quote Link to comment Share on other sites More sharing options...
Drcodyjones Posted July 17, 2012 Author Report Share Posted July 17, 2012 I put that line in Schedules_Results.tpl and re-uploaded it but when I try to automatically calculate the distance, I always get 6,083 miles. I know that Denver-Atlanta or Seattle-LAX isn't over 6,000 miles LOL. Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted July 17, 2012 Moderators Report Share Posted July 17, 2012 Do you have thoses airports in your admin center? Quote Link to comment Share on other sites More sharing options...
Drcodyjones Posted July 17, 2012 Author Report Share Posted July 17, 2012 Wow I'm getting old... I told one of my staff to start entering in every airport they could think of and expected them to have put extremely common ones like KATL and KSEA in there. The only ones the put in were KDEN and KLAX. Gotta have a talk with them... Thanks Kyle! I'll mark this post as solved. Thanks Cody 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.