private function pos($type) { $val = array_filter($this->data, function ($landmark) use($type) { return $landmark['type'] === $type; }); return array_shift($val)['position']; }