Live data from Hacker News

Show HN: I made a website to find best bus seat to avoid the sun while traveling

sitinshade.com

201–210 of 221 posts

Re: Show HN: I made a website to find best bus seat to avoid the sun while traveling

#202
Also try to sit towards the middle of the bus too, so that you don't get sun exposure from the front or back windows.

When I read the title, I was expecting the site to give you an optimal "seat" (13A), but I suppose for this would need to know the exact bus make and model.

Re: Show HN: I made a website to find best bus seat to avoid the sun while traveling

#203
Found a bug on the first search I ran, where the right side is preferred, despite having more sun (10.55%) vs. the left side (6.64%). Not sure how. All other searches gave more expected results.

Parameters: - Toronto to Montreal at 3:21PM EST.

Re: Show HN: I made a website to find best bus seat to avoid the sun while traveling

#204
post #130

Twenty-three years ago, during my daily trips to the university campus, I had the exact same idea. However, I became distracted by calculating the position of the sun and delved into astronomical algorithms, which led me to never complete it. Kudos to you, that's really impressive!

The hard part was obtaining information such as solar azimuth, altitude, declination, hour angle, etc without using external APIs. Spent around 5 days implementing backend.

For anyone wanting to do this calculation yourself, this site is really good: https://www.aa.quae.nl/en/reken/zonpositie.html

I've previously used the formulas on this site to calculate the altitude/azimuth of the Sun and all the planets from a given lat/long/time on Earth.

Re: Show HN: I made a website to find best bus seat to avoid the sun while traveling

#206
post #19
post #8

I recently took a bus over the Andes and was congratulating myself on choosing a seat on the shady side. Then I realized that in the southern hemisphere the sun is in the north and I had outsmarted myself.

> Then I realized that in the southern hemisphere the sun is in the north That's not exactly true. South of the tropic of capricorn, the sun is in the north at noon. Between the equator and the tropic of capricorn the sun could be slightly towards the north or south or directly overhead at noon depending on the season. As for sunrise and sunset the sun could be just about anywhere if you go south enough and the seaso…

Yep, my bedroom has windows to the south and east, which means here in New Zealand I should not expect any afternoon & evening sun that room. However, currently in summer when the sun is close to setting I get a few minutes of evening sun through the southern window, due to sun setting slightly southwest.

Re: Show HN: I made a website to find best bus seat to avoid the sun while traveling

#207
post #196

Earlier quoted context omitted.

> P.S. Using this has made it clear to me how bad most sunrise/sunset calculators actually are. That may just be a function of how you define "sunrise" and "sunset". It is never as simple as "when the sun hits the horizon", but something about some number of arc minutes from something something.

Dependent on the refractive index, which depends on air density and temperature and humidity too; and we have to integrate over the region between the horizon and the upper atmosphere (diagonally, of course)…

Haha, thanks ,yep. I learned all this when I lived in the Yukon and sunset takes about 2 hours...

Re: Show HN: I made a website to find best bus seat to avoid the sun while traveling

#209
post #130

Twenty-three years ago, during my daily trips to the university campus, I had the exact same idea. However, I became distracted by calculating the position of the sun and delved into astronomical algorithms, which led me to never complete it. Kudos to you, that's really impressive!

The hard part was obtaining information such as solar azimuth, altitude, declination, hour angle, etc without using external APIs. Spent around 5 days implementing backend.

I'm not sure what you mean by external APIs but is there a reason you're not using SunCalc[1] on the client to process the route after it's returned from the routing engine?

[1] https://www.npmjs.com/package/suncalc

Re: Show HN: I made a website to find best bus seat to avoid the sun while traveling

#210
Here is my strategy for boarding the bus: try to figure out how not to be toppled by a bus driver who's eager to hit the accelerator as soon as my fare is validated. As a result, I am usually collapsing into the first available seat that isn't completely soaked in urine or vomit. The Sun's position is usually the last thing on my mind at this point.
Post reply on HN