In research on the integration of immigrants, spatial effects are often mentioned, that is to say, it is assumed that the local context plays an important role. For example, it is obvious that the city of Paris offers opportunities for social mobility and education much higher than a village in Provence. However, it is extremely rare to have data to evaluate this intuition in a systematic way. The Trajectories and Origins survey is the only source at the international level that allows such a study. Its sample size of immigrants is broad enough to identify local effects of integration while controlling for other important factors that determine the integration process. However, publicly available data do not include variables that would identify the department and commune of residence of individuals.