Fix #1541 - skip transit edges in spatial index.