User Tools

Site Tools


en:public:developer:template_system:tags:barometer

<#barometer>

Object Barometer used to show average prices in some geographical place divided by property type, number of rooms, bedrooms etc. Normally we calculate actual average prices each month and we are using our listings to do this calculation. Calculated prices then are stored in database by month and year.

Main purpose of this object is to draw the graphic with polylines representing how the prices were changed in time.

Params used on creation of object

These params can be used in template on initialization of the object.

Name Mandatory Default Description
id_geoplace No (Yes, if “ip” is not defined) Our internal ID of geoplace, used to load the information of barometer that connected with this geoplace.
ip No (Yes, if “id_geoplace” is not defined IPv4, we are trying to define the geoplace according to this IP.
property_category No 1 (Residential) Property category: residential or commercial.
property_type Yes Property type (for example, 1 - apartments)
property_subtype No Property subtype (for example, villas)
rooms No Number of rooms
bedrooms No Number of bedrooms
building_permit No Applicable to lands. Represents the lands that have building permit (because the prices are different in few times if suck kind of permit is existing).
furnished No Applicable to houses and apartments. Represents the properties that are furnished. Most of the time they are considerably more expensive.
fallback_use_parent No If set to 1 means that if we don't find any data by given geoplace then try to use its parents one by one.
fallback_use_geoplace No ID of geoplace that will be used to obtain barometer data if there's no data by given geoplace (or its parents if “fallback_use_parent” is set.

Properties

Name Type Description
id integer ID of the barometer.
currency_code integer Currency code of the prices saved in this barometer. It is filled on loading from database.
criteria - Criteria of this barometer including property type, ID of geoplace, number of rooms etc.
years TWinRE_Barometer_Years Hash array of years. Keys are year labels, for example “2012”. Each element contains the object ”TWinRE_Barometer_Months”.
en/public/developer/template_system/tags/barometer.txt · Last modified: 2014/10/24 18:03 by igor