mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
document tokens
This commit is contained in:
@@ -7,7 +7,9 @@ namespace Nominatim\Token;
|
|||||||
*/
|
*/
|
||||||
class Country
|
class Country
|
||||||
{
|
{
|
||||||
|
/// Database word id, if available.
|
||||||
public $iId;
|
public $iId;
|
||||||
|
/// Two-letter country code (lower-cased).
|
||||||
public $sCountryCode;
|
public $sCountryCode;
|
||||||
|
|
||||||
public function __construct($iId, $sCountryCode)
|
public function __construct($iId, $sCountryCode)
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ namespace Nominatim\Token;
|
|||||||
*/
|
*/
|
||||||
class HouseNumber
|
class HouseNumber
|
||||||
{
|
{
|
||||||
|
/// Database word id, if available.
|
||||||
public $iId;
|
public $iId;
|
||||||
|
/// Normalized house number.
|
||||||
public $sToken;
|
public $sToken;
|
||||||
|
|
||||||
public function __construct($iId, $sToken)
|
public function __construct($iId, $sToken)
|
||||||
|
|||||||
@@ -7,10 +7,11 @@ namespace Nominatim\Token;
|
|||||||
*/
|
*/
|
||||||
class Postcode
|
class Postcode
|
||||||
{
|
{
|
||||||
|
/// Database word id, if available.
|
||||||
public $iId;
|
public $iId;
|
||||||
// full postcode
|
/// Full nomralized postcode (upper cased).
|
||||||
public $sPostcode;
|
public $sPostcode;
|
||||||
// optional restriction to a given country
|
// Optional country code the postcode belongs to (currently unused).
|
||||||
public $sCountryCode;
|
public $sCountryCode;
|
||||||
|
|
||||||
public function __construct($iId, $sPostcode, $sCountryCode = '')
|
public function __construct($iId, $sPostcode, $sCountryCode = '')
|
||||||
|
|||||||
@@ -9,9 +9,13 @@ require_once(CONST_BasePath.'/lib/SpecialSearchOperator.php');
|
|||||||
*/
|
*/
|
||||||
class SpecialTerm
|
class SpecialTerm
|
||||||
{
|
{
|
||||||
|
/// Database word id, if applicable.
|
||||||
public $iId;
|
public $iId;
|
||||||
|
/// Class (or OSM tag key) of the place to look for.
|
||||||
public $sClass;
|
public $sClass;
|
||||||
|
/// Type (or OSM tag value) of the place to look for.
|
||||||
public $sType;
|
public $sType;
|
||||||
|
/// Relationship of the operator to the object (see Operator class).
|
||||||
public $iOperator;
|
public $iOperator;
|
||||||
|
|
||||||
public function __construct($iID, $sClass, $sType, $iOperator)
|
public function __construct($iID, $sClass, $sType, $iOperator)
|
||||||
|
|||||||
@@ -7,10 +7,11 @@ namespace Nominatim\Token;
|
|||||||
*/
|
*/
|
||||||
class Word
|
class Word
|
||||||
{
|
{
|
||||||
|
/// Database word id, if applicable.
|
||||||
public $iId;
|
public $iId;
|
||||||
// If true, the word may represent only part of a place name.
|
/// If true, the word may represent only part of a place name.
|
||||||
public $bPartial;
|
public $bPartial;
|
||||||
// Number of appearances in the database.
|
/// Number of appearances in the database.
|
||||||
public $iSearchNameCount;
|
public $iSearchNameCount;
|
||||||
|
|
||||||
public function __construct($iId, $bPartial, $iSearchNameCount)
|
public function __construct($iId, $bPartial, $iSearchNameCount)
|
||||||
|
|||||||
Reference in New Issue
Block a user