Documentation

ByGeocode
in package

A namespaced client for the "/v1/reference-data/locations/hotels/by-geocode" endpoints.

Access via the Amadeus client object.

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

Table of Contents

$amadeus  : Amadeus
__construct()  : mixed
Constructor
get()  : array<string|int, Hotel>
Hotel List API:

Properties

Methods

__construct()

Constructor

public __construct(Amadeus $amadeus) : mixed
Parameters
$amadeus : Amadeus
Return values
mixed

get()

Hotel List API:

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

Returns a list of hotels result of the search using GeoCode.

$amadeus->getReferenceData()->getLocations()->getHotels()->getByGeocode->get( ["latitude" => "41.397158", "longitude" => "2.31836"] );

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

the parameters to send to the API

Tags
link
https://developers.amadeus.com/self-service/category/hotel/api-doc/hotel-list/api-reference
throws
ResponseException

when an exception occurs

Return values
array<string|int, Hotel>

an API resource

Search results