built directions API request handler