private function setNearbySearch()
 {
     if ($this->value === null) {
         return null;
     }
     if (isset($this->requestOptions['nearbySearchForType']) && is_array($this->requestOptions['nearbySearchForType'])) {
         $this->nearbySearch = in_array($this->value->getTypeID(), $this->requestOptions['nearbySearchForType']);
     }
 }