Documentation

Location extends Resource
in package
implements ResourceInterface

A Location object as returned by the Airport and City Search API, Airport Nearest Relevant API and Travel Recommendations API .

Tags
see
Locations::get()
see
Airports::get()
see
RecommendedLocations::get()
link
https://developers.amadeus.com/self-service/category/air/api-doc/airport-and-city-search/api-reference
link
https://developers.amadeus.com/self-service/category/air/api-doc/airport-nearest-relevant
link
https://developers.amadeus.com/self-service/category/trip/api-doc/travel-recommendations/api-reference

Interfaces, Classes, Traits and Enums

ResourceInterface

Table of Contents

$address  : object|null
$analytics  : object|null
$category  : string|null
$detailedName  : string|null
$distance  : object|null
$geoCode  : object|null
$iataCode  : string|null
$id  : string|null
$name  : string|null
$rank  : string|null
$relevance  : float|null
$response  : Response|null
$self  : object|null
$subType  : string|null
$tags  : string|null
$timeZoneOffset  : string|null
$type  : string|null
__set()  : void
__toString()  : string
fromArray()  : array<string|int, mixed>
fromObject()  : object
getAddress()  : LocationAddress|null
getAnalytics()  : LocationAnalytics|null
getCategory()  : string|null
getDetailedName()  : string|null
getDistance()  : LocationDistance|null
getGeoCode()  : GeoCode|null
getIataCode()  : string|null
getId()  : string|null
getName()  : string|null
getRank()  : string|null
getRelevance()  : float|null
getResponse()  : Response|null
getSelf()  : Links|null
getSubType()  : string|null
getTags()  : string|null
getTimeZoneOffset()  : string|null
getType()  : string|null
toArray()  : array<string|int, mixed>
For fitting into the Laravel framework Transform the resource into an array.
toResourceArray()  : array<string|int, mixed>
toResourceObject()  : object
toString()  : string

Properties

$address

private object|null $address = null

$analytics

private object|null $analytics = null

$category

private string|null $category = null

$detailedName

private string|null $detailedName = null

$distance

private object|null $distance = null

$geoCode

private object|null $geoCode = null

$iataCode

private string|null $iataCode = null

$relevance

private float|null $relevance = null

$subType

private string|null $subType = null

$timeZoneOffset

private string|null $timeZoneOffset = null

Methods

__set()

public __set(mixed $name, mixed $value) : void
Parameters
$name : mixed
$value : mixed
Return values
void

__toString()

public __toString() : string
Return values
string

fromArray()

public static fromArray(Response $response, string $class) : array<string|int, mixed>
Parameters
$response : Response
$class : string
Return values
array<string|int, mixed>

fromObject()

public static fromObject(Response $response, string $class) : object
Parameters
$response : Response
$class : string
Return values
object

getCategory()

public getCategory() : string|null
Return values
string|null

getDetailedName()

public getDetailedName() : string|null
Return values
string|null

getIataCode()

public getIataCode() : string|null
Return values
string|null

getId()

public getId() : string|null
Return values
string|null

getName()

public getName() : string|null
Return values
string|null

getRank()

public getRank() : string|null
Return values
string|null

getRelevance()

public getRelevance() : float|null
Return values
float|null

getSubType()

public getSubType() : string|null
Return values
string|null

getTags()

public getTags() : string|null
Return values
string|null

getTimeZoneOffset()

public getTimeZoneOffset() : string|null
Return values
string|null

getType()

public getType() : string|null
Return values
string|null

toArray()

For fitting into the Laravel framework Transform the resource into an array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

toResourceArray()

public static toResourceArray(array<string|int, mixed> $array, string $class) : array<string|int, mixed>
Parameters
$array : array<string|int, mixed>
$class : string
Return values
array<string|int, mixed>

toResourceObject()

public static toResourceObject(object $object, string $class) : object
Parameters
$object : object
$class : string
Return values
object

toString()

public static toString( $array) : string
Parameters
$array :
Return values
string

Search results