Airport Guide Documentation

TerminalController extends BaseController
in package

Table of Contents

Methods

airportInfoByLocId()  : stdClass
This function is used to retrieve airport information from external API using location ID.
get2DInteractiveMaps()  : string
This function is used to display 2D interactive maps for a specific airport terminal with level support.
getBusinessDetails()  : string
This function is used to display comprehensive business details for a specific airport terminal business.
getInteractiveMaps()  : void
This function is used to display interactive maps for a specific airport terminal with level support.
getTerminalLevelMaps()  : Response
This function is used to generate and stream a PDF map for a specific airport terminal level.
guideInfo()  : string
This function is used to display comprehensive guide information for a specific airport terminal.
showAllMaps()  : string
This function is used to display comprehensive maps collection for a specific airport terminal with caching support.
showBusinessList()  : string
This function is used to display a comprehensive business directory for a specific airport terminal.

Methods

airportInfoByLocId()

This function is used to retrieve airport information from external API using location ID.

public airportInfoByLocId(string $locid) : stdClass

This method fetches comprehensive airport details from an external GIS service using the provided location ID. It initializes default values for all airport properties and updates them with actual data if available from the API response.

Parameters
$locid : string

The location ID of the airport

Tags
uses
getInfoByCurl()

To fetch airport data from external GIS API

throws
Exception

When the external API request fails

Return values
stdClass

Airport information object with properties like locid, airport name, address, contact number, website, manager details, and geometry

get2DInteractiveMaps()

This function is used to display 2D interactive maps for a specific airport terminal with level support.

public get2DInteractiveMaps(Request $request, MetaService $metaService) : string

This method processes airport terminal data from URL segments, retrieves terminal and level information, and renders a 2D interactive map interface. It handles both terminal-specific and level-specific 2D map views, providing detailed spatial navigation and layout information for airport terminals.

Parameters
$request : Request

The HTTP request instance

$metaService : MetaService

Service for retrieving interactive map metadata

Tags
see
Request::segments()

To extract airport code, terminal name, and level from URL

uses
Airports19k

Model to query airport data by LOCID or ICAO identifier

uses
TerminalDetails

Model to retrieve terminal information

uses
view()

For rendering the 2D interactive maps template

Return values
string

The rendered HTML content for the 2D interactive maps page

getBusinessDetails()

This function is used to display comprehensive business details for a specific airport terminal business.

public getBusinessDetails(Request $request, MetaService $metaService) : string

This method retrieves detailed information about a business located within an airport terminal, including business information, reviews, operation hours, photos, and terminal details. It processes airport data from URL segments, validates business existence, and renders a complete business details page with all associated information.

Parameters
$request : Request

The HTTP request instance

$metaService : MetaService

Service for retrieving business metadata

Tags
see
Request::segments()

To extract airport code and business slug from URL

uses
Airports19k

Model to query airport data by LOCID or ICAO identifier

uses
BusinessDetailsFS

Model to retrieve business information

uses
BusinessReviewDetails

Model to retrieve business reviews

uses
BusinessOperationHours

Model to retrieve operation hours

uses
BusinessPhotoDetails

Model to retrieve business photos

uses
view()

For rendering the business details template

Return values
string

The rendered HTML content for the business details page

getInteractiveMaps()

This function is used to display interactive maps for a specific airport terminal with level support.

public getInteractiveMaps(Request $request, MetaService $metaService) : void

This method processes airport terminal data from URL segments, retrieves terminal and level information, and renders an interactive map interface. It handles both terminal-specific and level-specific map views, providing navigation and spatial information for airport terminals.

Parameters
$request : Request

The HTTP request instance

$metaService : MetaService

Service for retrieving interactive map metadata

Tags
see
Request::segments()

To extract airport code, terminal name, and level from URL

uses
Airports19k

Model to query airport data by LOCID or ICAO identifier

uses
TerminalDetails

Model to retrieve terminal information

uses
view()

For rendering the interactive maps template

Return values
void

Renders the interactive maps view and terminates execution

getTerminalLevelMaps()

This function is used to generate and stream a PDF map for a specific airport terminal level.

public getTerminalLevelMaps(Request $request) : Response

This method processes URL segments to extract terminal, level, and airport information, retrieves the corresponding terminal level map data, and generates a downloadable PDF file containing the map. The PDF is streamed directly to the browser for download.

Parameters
$request : Request

The HTTP request instance

Tags
see
Request::segments()

To extract terminal name, level name, ICAO identifier, and location ID from URL

uses
AirportsAirportflyer

Model to query airport information

uses
TerminalImages

Model to retrieve terminal level map data

uses
PDF::loadView()

To generate PDF from the level map template

throws
Exception

When terminal level map data is not found

Return values
Response

PDF stream response for the terminal level map

guideInfo()

This function is used to display comprehensive guide information for a specific airport terminal.

public guideInfo(Request $request, MetaService $metaService) : string

This method retrieves and displays detailed guide information for an airport terminal, including terminal details, images, business information, and airport descriptions. It processes airport data, retrieves terminal information with associated images, and renders a complete guide page with caching for performance.

Parameters
$request : Request

The HTTP request instance

$metaService : MetaService

Service for retrieving guide metadata

Tags
uses
Cache

For storing and retrieving cached responses

uses
Airports19k

Model to query airport data by LOCID or ICAO identifier

uses
TerminalDetails

Model to retrieve terminal information

uses
TerminalImages

Model to retrieve terminal images

uses
BusinessDetailsFS

Model to retrieve business information

uses
view()

For rendering the guide template

Return values
string

The rendered HTML content for the guide information page

showAllMaps()

This function is used to display comprehensive maps collection for a specific airport terminal with caching support.

public showAllMaps(Request $request, MetaService $metaService) : string

This method retrieves and organizes all available maps for an airport terminal, including 3D maps, level-specific maps, and terminal images. It processes airport data, retrieves terminal information with associated levels and images, organizes them by terminal and level, and renders a complete maps collection page with caching for performance.

Parameters
$request : Request

The HTTP request instance

$metaService : MetaService

Service for retrieving maps metadata

Tags
uses
Cache

For storing and retrieving cached responses

uses
Airports19k

Model to query airport data by LOCID or ICAO identifier

uses
TerminalDetails

Model to retrieve terminal information

uses
TerminalImages

Model to retrieve terminal level images and maps

uses
BusinessDetailsFS

Model to retrieve business information for maps

uses
view()

For rendering the maps collection template

Return values
string

The rendered HTML content for the all maps page

showBusinessList()

This function is used to display a comprehensive business directory for a specific airport terminal.

public showBusinessList(Request $request, MetaService $metaService) : string

This method retrieves and organizes all businesses within an airport terminal, categorizing them by main categories such as Food and drink, Shopping, Relax, Medical, Banking, Services, Government and organizations, and Other. It processes airport data, retrieves business details, organizes them by category, and renders a complete directory page with caching for performance.

Parameters
$request : Request

The HTTP request instance

$metaService : MetaService

Service for retrieving directory metadata

Tags
uses
Airports19k

Model to query airport data by LOCID or ICAO identifier

uses
TerminalDetails

Model to retrieve terminal information

uses
BusinessDetailsFS

Model to retrieve business information

uses
BusinessCategories

Model to retrieve business category information

uses
view()

For rendering the directory template

Return values
string

The rendered HTML content for the business directory page


        
On this page

Search results