server/src/app/Models/GeoResource.php
changeset 308 e032d686d88e
parent 277 bd4bc1db4f40
equal deleted inserted replaced
307:07b44a378ad8 308:e032d686d88e
   103     public function getLongitudeValue() {
   103     public function getLongitudeValue() {
   104         $long = $this->getLongitude();
   104         $long = $this->getLongitude();
   105         return is_null($long)?null:$long->getValue();
   105         return is_null($long)?null:$long->getValue();
   106     }
   106     }
   107 
   107 
   108 
   108     public function getGeonamesLocs() {
       
   109         return preg_grep(config('corpusparole.geonames_url_regexp'), $this->getRefLocs());
       
   110     }
   109 
   111 
   110     public function jsonSerialize() {
   112     public function jsonSerialize() {
   111         $notes = array_map(
   113         $notes = array_map(
   112             function($note) { return Utils::processLiteralResourceOrString($note); },
   114             function($note) { return Utils::processLiteralResourceOrString($note); },
   113             $this->getNotes()
   115             $this->getNotes()