An API lets you sort given a stack of boarding cards for various transportations that will take you from a point A to point B via several stops on the way and present back a description of how to complete your journey.