server/src/app/Models/GeoResource.php
changeset 308 e032d686d88e
parent 277 bd4bc1db4f40
--- a/server/src/app/Models/GeoResource.php	Fri Sep 30 00:43:04 2016 +0200
+++ b/server/src/app/Models/GeoResource.php	Sun Oct 02 11:49:00 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
+}