public function getStationByParameter($parameterName, $stationId)
    {
        $stationsMetadata = $this->getStationsByParameter($parameterName);

        $stationMetadata = collect($stationsMetadata)->first(function ($stationMetadata) use ($stationId) {
            return $stationMetadata['id'] == $stationId;
        });

        return $stationMetadata;
    }
public function getStationByParameter($parameterName, $stationId)
    {
        $stationsMetadata = $this->getStationsByParameter($parameterName);

        $stationMetadata = collect($stationsMetadata)->first(function ($stationMetadata) use ($stationId) {
            return $stationMetadata['id'] == $stationId;
        });

        return $stationMetadata;
    }
public function getStationByParameter ( $ parameterName , $ stationId ) { $ stationsMetadata = $ this -> getStationsByParameter ( $ parameterName ) ; $ stationMetadata = collect ( $ stationsMetadata ) -> first ( function ( $ stationMetadata ) use ( $ stationId ) { return $ stationMetadata [ 'id' ] == $ stationId ; } ) ; return $ stationMetadata ; }
Returns all metadata for a station like elevation lat and longitude

@param $parameterName
@param $stationId
@return mixed
Returns all metadata for a station like elevation lat and longitude