Airport Guide Documentation

CityController extends BaseController
in package

Table of Contents

Methods

citiesInfo()  : string
This function is used to display comprehensive city information and transportation services for a specific airport-city route.
getallShuttlesCity()  : Response
This function is used to get all shuttles city and display shuttle services for a specific airport city.

Methods

citiesInfo()

This function is used to display comprehensive city information and transportation services for a specific airport-city route.

public citiesInfo(Request $request) : string

This method processes airport-city route data from URL segments, retrieves transportation services and time using external APIs, organizes services by vehicle type, and renders a complete city information page with all available transportation options.

Parameters
$request : Request

The HTTP request instance

Tags
see
Request::segments()

To extract airport, state, county, and city from URL

uses
Airports19k

Model to query airport data by ICAO identifier

uses
getInfoByCurlCache()

To retrieve travel and nearby city data from external APIs

uses
view()

For rendering the city information template

uses
Various

transportation models (ShuttleDetails, LimoTaxiDetails, etc.) to retrieve service data

Return values
string

The rendered HTML content for the city information page

getallShuttlesCity()

This function is used to get all shuttles city and display shuttle services for a specific airport city.

public getallShuttlesCity(Request $request, MetaService $metaService) : Response

This method retrieves shuttle and limo-taxi services for an airport based on its location ID or ICAO identifier. It processes airport data, retrieves service information, and renders a complete page with shuttle services, terminal information, and nearby cities. The response is cached for non-logged-in users to improve performance.

Parameters
$request : Request

The HTTP request instance

$metaService : MetaService

Service for retrieving airport metadata

Tags
uses
Cache

For storing and retrieving cached responses

uses
Airports19k

Model to query airport data by LOCID or ICAO identifier

uses
ShuttleLimoTaxiTransitAirportflyer

Model to retrieve shuttle service data

uses
view()

For rendering the shuttle services template

Return values
Response

Either the shuttle services page or a 404 error page


        
On this page

Search results