Is railroad a line or line segment?

line segment