Jump to content

Recommended Posts

Posted

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?

  • Administrators
Posted

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 :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...