wrap route geometry into transaction so it will not take forever to run