First pass at map connections and distance computation.