Spatial analysis of geographic flows