Documentation

RecommendedLocations
in package

A namespaced client for the "/v1/reference-data/recommended-locations" endpoints.

Access via the Amadeus client object.

$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getReferenceData()->getRecommendedLocations();

Table of Contents

$amadeus  : Amadeus
__construct()  : mixed
get()  : array<string|int, Location>
Travel Recommendations API:

Properties

Methods

get()

Travel Recommendations API:

public get(array<string|int, mixed> $params) : array<string|int, Location>

Returns a list of destination recommendations.

$amadeus->getReferenceData()->getRecommendedLocations()->get(["cityCodes"=>"PAR", "travelerCountryCode"=>"FR"]);

Parameters
$params : array<string|int, mixed>

the parameters to send to the API

Tags
link
https://developers.amadeus.com/self-service/category/trip/api-doc/travel-recommendations/api-reference
throws
ResponseException

when an exception occurs

Return values
array<string|int, Location>

an API resource

Search results