Although they have different objectives, emergency response systems and on-demand transportation systems are two similar systems in the sense that both deal with stochastic demand and service time which create congestions for moderate level of demand. Emergency response system location problems are one of the early problems immensely dealt in the literature. These problems are modeled by either set covering or transportation models which do not give much attention to the stochastic nature of the problem. On-demand transportation is a newly developing type of transportation system and literature is not broad enough but has similarities with emergency response systems. In this research, our aim is to solve facility location problem with stochastic demand and service time. Specifically we are dealing with temporal and spatial stochasticity which emerge because of the uncertainty in demand and service time. Recently we have developed a mixed aggregate hypercube model which are extensions to Larson (1974) and Boyacı and Geroliminis (2012). Results are promising and applicable to real life instances