protected function getLocation(Document $document, $sm) 
	{
		$main = $sm->get('neobazaar.service.main');
		$location = $document->getGeoname();
		if(null !== $location) {
			if('ADM3' == $location->getFeatureCode()) {
				$location = $main->getGeonamesEntityRepository()->getParent($location);
			}
		}
		
		return null !== $location ? $location->getUrl() : '';
	}