*/
class Country
{
+ /// Database word id, if available.
public $iId;
+ /// Two-letter country code (lower-cased).
public $sCountryCode;
public function __construct($iId, $sCountryCode)
*/
class HouseNumber
{
+ /// Database word id, if available.
public $iId;
+ /// Normalized house number.
public $sToken;
public function __construct($iId, $sToken)
*/
class Postcode
{
+ /// Database word id, if available.
public $iId;
- // full postcode
+ /// Full nomralized postcode (upper cased).
public $sPostcode;
- // optional restriction to a given country
+ // Optional country code the postcode belongs to (currently unused).
public $sCountryCode;
public function __construct($iId, $sPostcode, $sCountryCode = '')
*/
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)
*/
class Word
{
+ /// Database word id, if applicable.
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;
- // Number of appearances in the database.
+ /// Number of appearances in the database.
public $iSearchNameCount;
public function __construct($iId, $bPartial, $iSearchNameCount)