How the Sun Facing Checker Works: Method and Data Sources

Last updated

The data sources, the sun maths, the settings used and what the figures do not cover, in plain English.

If a site tells you which way a block faces and how long the sun hits it, you can fairly ask where the numbers came from. This page says. By the end you will know the data sources, the sun maths, the settings used, and what the figures leave out.

Is this you?

  • You want to check that the sun figures are computed, not guessed.
  • You want to know which open data the block and condo facings come from.
  • You want to know what the figures do not cover before you rely on them.

Data sources

SourceUsed forPublisher and licence
HDB Existing Building and HDB Property InformationOutline of each HDB block, whether it is residential, its town and its top floorHousing and Development Board through data.gov.sg, Singapore Open Data Licence v1.0
OneMap searchOne point per HDB block, used only to join the two HDB datasetsSingapore Land Authority, OneMap
OpenStreetMapBuilding outlines around each condo, found with the Overpass API, and building heights in the live checker where recordedOpenStreetMap contributors, ODbL
OpenFreeMap tilesThe map in the live checkerOpenFreeMap
SunCalc 1.9.0Sun position, sunrise and sunsetOpen source library

The HDB and condo data was last fetched on 4 November 2026.

How a wall is found and rated

  1. Take the outline of each block from the data above. Only outer rings are used, so courtyards are ignored.
  2. Turn each outline into walls. Walls shorter than 3 m are ignored, as in the live checker.
  3. Round each wall's outward direction to one of eight compass points. A main side is one that holds at least 12% of a block's wall length.
  4. For each wall direction, step through each month at 5 minute intervals. Count the time the sun is above the horizon, within 90° of the wall, and cos(height of sun) multiplied by cos(angle off the wall) is at least 0.3.
  5. Use the 15th of each month of 2026, in Singapore time, at the town or condo coordinates.

The sun maths is loaded from the same file the live checker ships (public/js/solar-core.js), so a wall is rated the same way on a guide page, a town page and in the tool.

What is left out

The live checker does model shadows from mapped buildings. It uses the height recorded in OpenStreetMap where there is one, and a typical height for the building type where there is not.

Next step

To check a specific address against the real surroundings, use the Sun Facing Checker. If you spot a figure that looks wrong, message Winfred Quek and it will be checked.

Check it yourself

The Sun Facing Checker shows which way the address faces and when the sun reaches it, for any month and time of day.

Frequently asked questions

Are the sun figures measured or computed?
Computed. They come from the SunCalc 1.9.0 library, which works out the sun's position from the date, time and place, not from a sensor.
Do the figures include shade from other buildings?
The guides and town pages do not. They use outlines only. The live checker models shadows from mapped buildings.
Where do the HDB block outlines come from?
From the HDB Existing Building dataset on data.gov.sg, joined to HDB Property Information using OneMap points.
Why use the 15th of each month?
It is one fixed day in the middle of the month, so the same figures come out every time the pages are rebuilt.

Related guides

Want to see the method applied to one address? Use the checker, or message Winfred Quek to talk through what you find.

WhatsApp for a free valuation report Book a 30 minute call