PHP 클래스 BitbarPlugins\Travel\GeolocationResponse

파일 보기 프로젝트 열기: matryer/bitbar-plugins

공개 메소드들

메소드 설명
fromApiResponse ( $response ) : GeolocationResponse Creates an instance of GeolocationResponse from raw API response in json
getAccuracy ( ) : float
getLatitude ( ) : float
getLongitude ( ) : float

비공개 메소드들

메소드 설명
getAccuracyFromResponse ( array $geolocation )
getErrorFromResponse ( array $geolocation )
getLatitudeFromResponse ( array $geolocation )
getLongitudeFromResponse ( array $geolocation )

메소드 상세

fromApiResponse() 공개 정적인 메소드

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

getAccuracy() 공개 메소드

public getAccuracy ( ) : float
리턴 float

getLatitude() 공개 메소드

public getLatitude ( ) : float
리턴 float

getLongitude() 공개 메소드

public getLongitude ( ) : float
리턴 float