PHP Class BitbarPlugins\Travel\DistanceMatrixResponse

Datei anzeigen Open project: matryer/bitbar-plugins

Public Methods

Method Description
fromApiResponse ( $response ) : DistanceMatrixResponse Creates an instance of DistanceMatrixResponse from raw API response in json
getDestinationAddresses ( ) : string
getOriginAddresses ( ) : string
getRows ( ) : DistanceMatrixResponseElement
getStatus ( ) : string

Private Methods

Method Description
getDestinationAddressesFromResponse ( array $distanceMatrix )
getErrorFromResponse ( array $distanceMatrix )
getOriginAddressesFromResponse ( array $distanceMatrix )
getRowsFromResponse ( array $distanceMatrix )
getStatusFromResponse ( array $distanceMatrix )

Method Details

fromApiResponse() public static method

Creates an instance of DistanceMatrixResponse from raw API response in json
public static fromApiResponse ( $response ) : DistanceMatrixResponse
$response
return DistanceMatrixResponse

getDestinationAddresses() public method

public getDestinationAddresses ( ) : string
return string

getOriginAddresses() public method

public getOriginAddresses ( ) : string
return string

getRows() public method

public getRows ( ) : DistanceMatrixResponseElement
return DistanceMatrixResponseElement

getStatus() public method

public getStatus ( ) : string
return string