diff -r 706f10bcdc3c -r f5690d918358 server/src/app/Models/GeoResource.php --- a/server/src/app/Models/GeoResource.php Sun Oct 02 19:11:06 2016 +0200 +++ b/server/src/app/Models/GeoResource.php Sun Oct 02 19:14:07 2016 +0200 @@ -105,7 +105,9 @@ return is_null($long)?null:$long->getValue(); } - + public function getGeonamesLocs() { + return preg_grep(config('corpusparole.geonames_url_regexp'), $this->getRefLocs()); + } public function jsonSerialize() { $notes = array_map( @@ -175,4 +177,4 @@ } -} \ No newline at end of file +}