protected function guessLocality(array $components) { $localityKeys = array('city', 'town', 'village', 'hamlet'); return $this->guessBestComponent($components, $localityKeys); }