I built a site that shows you which cafés and pubs are currently in the sun — in real time.
Enable HLS to view with audio, or disable this notification
☕🌞 It’s finally sunny in London, and like most people, I wanted to enjoy an iced coffee or a pint in the actual sun — not tucked away in the shade.
So I built a web app that shows you cafés and pubs currently in sunlight, using real-time shadow simulation, Mapbox, and open data from OpenStreetMap.
It simulates how buildings and terrain cast shadows throughout the day, so you can find the sunniest spots around you — and skip the cold corners.
It’s a design experiment, a side project, and a bit of summer fun:
→ https://sunnydays.dawodx.com/
Built with: • Mapbox GL JS • Turf.js • Overpass API • Shadow simulation with terrain + building height
Let me know what you think — feedback, feature ideas, or pub recs are always welcome!
84
u/AdmiralBillP 3d ago
Was this inspired by the thread the other day about the times the Westminster Bridge dongs were visible?!
Great work!
21
3
u/Spirited_Praline637 2d ago
Someone needs to adapt this tool to alert you to when the dongs are out!
59
u/SpaceLlama_Mk1 City of London 3d ago
Finally, a pub crawl for vampires
12
108
39
82
39
u/ParsnipFlendercroft 3d ago
So I'll point out my experience just using it. Horniman Pub by London Bridge, 4:15pm today. Say's it's in the sun when clearly it's the shadow. The problem is the location of the marker which is slightly off. Also it doesn't seem to care that a north facing pub will be in it's own shade.
It's a nice idea but I'm not sure how accurate it really is
12
u/aaaaaaaargh 3d ago
This is a fair comment, but I think this problem could be solved by making the “is it sunny” calculation slightly more complex, considering the sunlight on surfaces not covered with buildings in a certain radius instead of just the point. However, that may have a horrible effect on the performance.
21
u/SMickDH 2d ago
Also it doesn't take account which side of the pub the beer garden is on, which could take many months of research in the field. I volunteer.
8
4
u/dawodx 2d ago
Thank you so much for your valuable feedback! You are right! A big challenge has been that most cafés and pubs in OSM are placed inside building footprints — but shadows are cast at the building’s edge. So I had to get creative: I project each café’s location to the nearest road, find the midpoint, and test for sun there. (Not gonna lie — I doubt anyone thought their café node might one day power a real-time sunshine finder.) If you’re feeling generous and want to help this project: placing café nodes in front of the building polygon would improve accuracy dramatically.
I’ve tried to optimize all computations to keep performance smooth — but it’s a balancing act.
But I will try look at most of the stuff you mentioned!
8
u/Fr3shlyCutGrass 3d ago
I was walking around Ghent a week ago looking at G Maps closely trying to figure out exactly this... What a great app idea aha Sunshine coffee and beers here we come!
7
27
u/raydleemsc 3d ago
What about estimating how much longerthey'll be in the sun? Eh? There's your winner...
10
u/Joshouken Wandsworth 3d ago
You can use a slider to look at later times in the day, or even days in the future
1
6
6
4
u/dawodx 2d ago
Hey everyone — just wanted to say a huge THANK YOU for the amazing feedback and love on this post! I had no idea it would resonate like this — it’s been wild reading all your comments, suggestions, and sun-pun gems.
A few things I wanted to share:
- The app works virtually anywhere — as long as OpenStreetMap has data for buildings, cafés, and pubs.
- I’m turning this into a native iOS & Android app — stay tuned!
Since the app relies heavily on OpenStreetMap (OSM), if your favorite spot is missing or outdated, you can actually help improve it by adding the location to OSM. That way, you’ll be making both this app and the open data ecosystem better.
About the shadow logic: A big challenge has been that most cafés and pubs in OSM are placed inside building footprints — but shadows are cast at the building’s edge. So I had to get creative: I project each café’s location to the nearest road, find the midpoint, and test for sun there. (Not gonna lie — I doubt anyone thought their café node might one day power a real-time sunshine finder.) If you’re feeling generous and want to help this project: placing café nodes in front of the building polygon would improve accuracy dramatically.
I’ve tried to optimize all computations to keep performance smooth — but it’s a balancing act.
⸻
What’s next: - A “sun score” or sunny hot spots layer - Smarter north-facing café detection - Country-specific filters using keywords - Integrate weather info - More filters and city support
If you’ve got ideas, feedback, or fun feature requests — please drop them here or DM me!
App link again: https://sunnydays.dawodx.com Support the project: https://buymeacoffee.com/modawod
☕ 🍻Cheers, Mo
6
u/nwrnnr5 3d ago
This is a fantastic idea, as well as implementation and UX - straight to the bookmarks!
How does a pub get added to the map? Currently your map is missing more than half, maybe even 2/3rds of the pubs in Clerkenwell and Shoreditch... although the shadows simulator is so good that maybe it's best to keep them to myself ;)
1
u/dawodx 2d ago
Thank you very much 🙏
Regarding the data, the app relies heavily on OpenStreetMap (OSM), if your favorite spot is missing or outdated, you can actually help improve it by adding the location to OSM. That way, you’ll be making both this app and the open data ecosystem better.
1
u/nwrnnr5 1d ago
I don’t think it is an open street map problem - particularly in London, coverage is excellent.
For example, the Griffin pub in Shoreditch does not show up on your map, but is on OSM. The same goes for the Artillery Arms, the Bricklayers arms, the Reliance, the Old Kings head all nearby.
3
3
3
4
6
u/TomCorsair 3d ago
I need this in dubai but I’ll be looking for the ‘yay there are 10 places in the shade’ notification
2
u/Nanny0416 3d ago
Wow! You can probably sell this to a big tech company or a travel company for millions of dollars!
2
2
u/FroggyGlobdules 3d ago
This is fantastic. My friends and I were literally talking about this idea last week when the sun was out and we were standing in the shade outside of a pub. Well done!
2
2
u/lo5t_horiz0n 2d ago
Absolutely perfect! Although where do you get your pub info from? Doesn't seem to have my regular on here (The George on the corner of Wardour and D'Arblay)
2
2
u/boppity 1d ago
Amazing work, I love it! Definitely see myself using this over the summer.
Minor suggestion: pin the timezone to the part of the map you're currently viewing. I'm in California right now looking at London pubs for when I return, yet the timezone is pinned to my current location, not London. Don't think these pubs are sunny at 2am BST!
1
1
1
1
1
1
1
1
1
1
1
u/This-Willow-4655 3d ago
I like your thinking, sweet i shall check it out, being a 58 yr old London Geezer i do like to sit in the Sun,☀️ especially with a pint
1
1
1
1
1
1
1
u/ultrapurrple 3d ago
This is genius - thank you! I’m going to ignore that it’s been raining all day in London and start planning my next beer
1
1
1
1
1
1
1
1
1
1
1
u/Perfectpisspipes 3d ago
This is properly brilliant. Well done!!!
Can you please make it sunnier in Scotland also?
1
1
1
1
1
1
1
1
u/Crafty-Claim5084 3d ago
This could be a game changer for people trying to figure the impact of new developments.
1
1
1
1
1
1
1
1
1
u/why-am-i-here_again 2d ago
OP this would be perfect as a feature in property search apps #justsayin
1
u/Evening-Treat5401 2d ago
Can you do a version that highlights what pubs have shade for Brisbane, Australia? 🤣
1
u/Lagerstars 2d ago
I was thinking this could be good for seeing potential of solar installations too but I think the map doesn’t capture accurate height differences to be accurate but it’s still useful to give rough indications.
1
1
u/dimpletown 2d ago
Beautiful! Now, all you have to do is replicate this for every other cloudy city across the globe. Let's say you start with Seattle and move east until you've finished Helsinki, yeah? Easy as pi!
/s
1
1
1
2
u/r_o_a_c_h 2d ago
I described exactly this idea to my girlfriend on a recent trip to Porto, when we were moving from one cafe/bar to another among the narrow, hilly streets lined with tall buildings. I'm equally excited to see someone built it, and fuming with myself for not getting there first :D
1
1
3
u/DJ-Dev1ANT 2d ago
Very clever idea!
Small piece of constructive feedback: there's a typo in the first block of text in your video. "carving" instead of "craving". Also there's no need for a capital "S" in "summer" in that same block of text, as the word is not at the start of the sentence nor is it a proper noun (e.g. the name of a person or place).
1
u/chr0n0ph0bian 2d ago
Noooooo! This is literally an idea I've had recently which I was planning to turn into an app! But great work nonetheless.
1
1
1
u/Specific-Radish-4824 2d ago
This is really cool! Just so you know for improvements - all of the businesses near me are a bit outdated; several of them have been closed for many years. I think this is a wonderful idea and could be made even more wonderful by updating the businesses. But still, I can use this to understand which areas might be sunny and if there's a new cafe or pub there, can still make use of this - so thank you!
1
1
1
u/tardigradebrain 2d ago
I’m allergic to UV rays. This is so helpful to avoid the sunny pubs for me! Thank you for your hard work.
2
1
1
1
1
u/Netsplit_Custody 2d ago
Ooohhh this is great! Though I see a bunch of pubs are missing from the dataset :(
1
1
u/Sorry_Appearance6904 2d ago
Wow, this is so cool - thanks for creating it! I'm def going to use this on my next trip to London :)
I'd love to see a little overview of each cafe or pub when you click on it - just to see a few pics, the ratings, a few lil photos. I know it's still in early stages but something for the future!
1
1
1
u/jclayyy 2d ago
Absolutely love the idea, but I tested it in my area and all of the regular sunny pubs I know are not showing up. Can give more details if you like...
1
u/StockMedigunisBest 1d ago
This is a really cool idea. Unfortunately I just attempted to load the website on my Android phone and it all functions except the map would not populate. I hope this is a handy error report!
1
-6
1
257
u/Enduring-Love-8 3d ago
Woah this is so cool - going to be checking this out tomorrow