I was not on a bike, but I have done the same - in Sydney. I was not proud, I tell you... but I had no options. I accidentally got off my bus several stops before my accommodation in a residential suburb. I did not know the neighbourhood and after walking several blocks I had waited all I could. I just had to go. I barely had time to take down my pants.
Afterwards I found a pub a couple of blocks further, right next to my accommodation. There is no way I could have made it all the way there, even if I had known where it was.
--J