Skip to content

Solar analysis coding challenge for Coder Foundry's YouTube live stream

License

Notifications You must be signed in to change notification settings

BSchafer01/SolarAnalysisCodeChallenge

Repository files navigation

Solar Analysis (Sunset Hills) Code Challenge

Current Version Live Demo

Table of Contents

General info

This project was developed as an entry for the CoderFoundry Sunset Hills coding challenge. The main goal of the challenge is to accept an array of building heights and determine which buildings the sunset is visible from.

Features

  • Accepts an unlimited number of buildings with:

    • Unique labels
    • Building Heights
    • Building Widths
  • Determines which buildings will see the sunset, sunrise, both, or neither

  • Plots the results in a stepped filled area chart

  • Displays the building data in an easy to read table

  • Accepts an address/postal code and date

  • Pulls the total daylight time from sunrise-sunset.org's API

  • Calculates the total sun exposure based off shadows of other buildings in the line

    • shadow at roof level = (TallBuildingHeight - ShortBuildingHeight)/tan(SunAngle)
  • Plots the total morning sun time and the total afternoon sun time for each building on a bar chart

Technologies

Project is created with:

Setup

To run this project locally:

  • clone this repository
  • replace the redacted Syncfusion license with your Syncfusion community license
  • replace the Google geocoding API key with your Google API key

About

Solar analysis coding challenge for Coder Foundry's YouTube live stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published