Location
in package
A namespaced client for the "/v1/reference-data/locations/:location_id" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getReferenceData()->getLocation();
Table of Contents
- $amadeus : Amadeus
- $locationId : string
- __construct() : mixed
- get() : Location
- Airport and City Search API:
Properties
$amadeus
private
Amadeus
$amadeus
$locationId
private
string
$locationId
Methods
__construct()
public
__construct(Amadeus $amadeus, string $locationId) : mixed
Parameters
- $amadeus : Amadeus
- $locationId : string
Return values
mixed —get()
Airport and City Search API:
public
get() : Location
Returns a specific airport or city based on its id.
$amadeus->getReferenceData()->getLocation("CMUC")->get();
Tags
Return values
Location —an API resource