New Route System
#21
The routes aren't working yet though
Reply
#22
Made a little more progress on this today. You should now be able to fully create a route and view it on your routes page. Although the "route" portion of the table is not formatted yet, so you will see something that looks similar to this:

[{"leg":0,"time":"05:45","origin":"424","destination":"429"},{"leg":1,"time":"08:22","origin":"429","destination":"1560"},{"leg":2,"time":"09:48","origin":"1560","destination":"429"},{"leg":3,"time":"11:15","origin":"429","destination":"424"}] It's formatted a bit now, but still not perfect.

That's just the JSON encoded array that holds the route information. I haven't de-coded it for display yet, so that's why you see it as raw data instead of something like LAX-SFO-LAS-LAX. That's the next step, to display the route in a nice, neat, readable format.

And since I know I'm going to get a question on this, no, the "Fly Route" button doesn't work yet.

Also, just a note since it might be a little confusing, when you are creating the route, it tells you the length of the route at the bottom of the page. You'll notice this doesn't change if you allow for extra time between flights. This represents the total flight time, or time the aircraft is in the air as well as in turnaround status. If you add extra time between flights it won't change the length of the route. Technically this allows routes to be longer than 24 hours, but all that extra time is just time that the aircraft spends waiting on the ground between flights, so I figured it wasn't a big deal.
I am the developer of Airline Enterprise
Reply
#23
Looks good so far!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

About Airline Enterprise

Welcome to the official message boards of Airline Enterprise. Feel free to join the discussions, ask for help or just browse!

              Quick Links

              User Links