PHP Class BitbarPlugins\Travel\GeolocationResponse

ファイルを表示 Open project: matryer/bitbar-plugins

Public Methods

Method Description
fromApiResponse ( $response ) : GeolocationResponse Creates an instance of GeolocationResponse from raw API response in json
getAccuracy ( ) : float
getLatitude ( ) : float
getLongitude ( ) : float

Private Methods

Method Description
getAccuracyFromResponse ( array $geolocation )
getErrorFromResponse ( array $geolocation )
getLatitudeFromResponse ( array $geolocation )
getLongitudeFromResponse ( array $geolocation )

Method Details

fromApiResponse() public static method

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

getAccuracy() public method

public getAccuracy ( ) : float
return float

getLatitude() public method

public getLatitude ( ) : float
return float

getLongitude() public method

public getLongitude ( ) : float
return float