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
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
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
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
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
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
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
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
Return values
string —The rendered HTML content for the business directory page