calculate lengths by bikeway types