X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/f29c7bf910ea36fdc2cc70ba63c6dcece79c7b6c..d9e0ef0ebfbc2860e7c0b7e7510a4014300074be:/lib/TokenSpecialTerm.php diff --git a/lib/TokenSpecialTerm.php b/lib/TokenSpecialTerm.php index d2a21721..64e4b3d4 100644 --- a/lib/TokenSpecialTerm.php +++ b/lib/TokenSpecialTerm.php @@ -9,9 +9,13 @@ require_once(CONST_BasePath.'/lib/SpecialSearchOperator.php'); */ class SpecialTerm { + /// Database word id, if applicable. public $iId; + /// Class (or OSM tag key) of the place to look for. public $sClass; + /// Type (or OSM tag value) of the place to look for. public $sType; + /// Relationship of the operator to the object (see Operator class). public $iOperator; public function __construct($iID, $sClass, $sType, $iOperator) @@ -30,7 +34,7 @@ class SpecialTerm 'Info' => array( 'class' => $this->sClass, 'type' => $this->sType, - 'operator' => Operator::toString($this->iOperator) + 'operator' => \Nominatim\Operator::toString($this->iOperator) ) ); }