If we are to realize the everyday benefits promised by pervasive computing and context- aware applications, we must first develop the foundation systems that will make those applications easy to develop, to deploy, and to maintain. We must develop systems that provide the necessary contextual information with accuracy, robustness, and scalability. We must also address the technical challenges of engineering these systems for use by humans and mobile devices in indoor environments. Researchers at the MIT Computer Science and Artificial Intelligence Laboratory are developing the Cricket indoor location system, a ubiquitous and precise location infrastruc- ture for pervasive computing. In this thesis I lay the foundations for leveraging.