amadeus-travel-innovation-sandbox / sandbox-content

Decommission of the Travel Innovation Sandbox
14 stars 28 forks source link

Durations and totals #2

Open tommiehansen opened 9 years ago

tommiehansen commented 9 years ago

Include duration for each leg (flight) and total durations (itinererary level) for all GET responses or alternative include the timezone (UTC +/- DST) for each time format so one can calculate the durations more easily.

tadhgpearson commented 9 years ago

Thanks for the feedback Tommie. You're totally right, the correct way to do this would be to include the timezone offset in the date-time response, as we do in the Travel Record API. This would allow you to easily calculate the duration and enable a bunch of cool new ways to display flights. Unfortunately it's too late to change the date format in the current version of the flight APIs, as this wouldn't be backwards compatible. However, we will include it in the next version!

tommiehansen commented 9 years ago

Ok, thanks for the quick reply.

hari-rangarajan commented 6 years ago

@tadhgpearson Any developments on this in recent releases? It looks like the flight search should return 'durations' as per the spec but don't see this field being populated from the server.

    'flights': Array<FlightSearchSegment>;
    /**
    * The duration of this bound, including layover time, expressed in the format hh:mm
    */
    'duration': string;
tadhgpearson commented 6 years ago

@xmulot - any comment on this?