Method | Description | |
---|---|---|
fromApiResponse ( $response ) : |
Creates an instance of GeolocationResponse from raw API response in json | |
getAccuracy ( ) : float | ||
getLatitude ( ) : float | ||
getLongitude ( ) : float |
Method | Description | |
---|---|---|
getAccuracyFromResponse ( array $geolocation ) | ||
getErrorFromResponse ( array $geolocation ) | ||
getLatitudeFromResponse ( array $geolocation ) | ||
getLongitudeFromResponse ( array $geolocation ) |
public static fromApiResponse ( $response ) : |
||
$response | ||
return |