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
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
Return values
Response —Either the shuttle services page or a 404 error page