This is just nuts, what happens if your phone is out of battery? You're supposed to stay out for minutes or hours at potentially past midnight before you can go into your own home?
iPhones have had Power Reserve for a few years now. For up to around 5 hours after your phone turns off due to low battery you can still use things like Find My or Express Card transactions (payment, transit, car home hotel keys, student ids). Unfortunately, Latch doesn't support this. Oh, and Latch automatically locks the door behind you. Don't forget your phone when you take out the trash, get the mail, or pick up dry laundry.
Unless there are power outlets in your apartment complex and there's right power adapter available how are you even supposed to charge your phone in this situation?
We need to go to a place where it's possible to charge and while the device charges we can quitely contemplate on all the life choices that led to this situation.