Overview
Theservicios array contains utility service information for the property, including service type, stratum level, and monthly costs. This data is displayed in the property details section.
Service Object Structure
Service type identifierCommon values:
"gas"- Natural gas"energia"- Electricity"acueducto"- Water and sewage"internet_tv"- Internet and TV
"gas"Socioeconomic stratum level (1-6)Determines service pricing tiers in Colombia. Lower strata receive subsidies, higher strata pay surcharges.Example:
3Monthly service cost in Colombian pesos (COP)Example:
25000Example Services Array
Rendering Services
Services are rendered in the UI by therenderServices() function (app.js:473-495):
Display Behavior
- Empty array: Shows “No hay servicios registrados” message
- Service name: Uses
serviciofield (ornombreas fallback) - Cost formatting: Formats
valoras Colombian currency (COP) - Missing costs: Displays ”—” when
valoris missing
Currency Formatting
Service costs are formatted using theformatCurrency() helper (app.js:15-22):
- Input:
25000→ Output:"$25.000" - Input:
100000→ Output:"$100.000" - Input:
null→ Output:"--"
Service Types
Common service identifiers found in the data:| Service ID | Description | Typical Range (COP) |
|---|---|---|
gas | Natural gas | 50,000 |
energia | Electricity | 150,000 |
acueducto | Water/sewage | 150,000 |
internet_tv | Internet & TV | 150,000 |
Stratum System Context
In Colombia, the estrato (stratum) system classifies properties into 6 socioeconomic levels:- Estrato 1-2: Low income (receive utility subsidies)
- Estrato 3-4: Middle income (pay standard rates)
- Estrato 5-6: High income (pay surcharges to subsidize lower strata)
estrato field in services typically matches the property’s overall stratum (detalles_propiedad.estrato).
Data Normalization
Services are passed directly from the property object without transformation:servicios is missing
Usage Example
Accessing services in the application:Total Monthly Costs
To calculate total monthly utility costs:Related Components
- Property Schema - Parent property object
- Service renderer -
renderServices()inapp.js:473 - Currency formatter -
formatCurrency()inapp.js:15