Network.from_lines
- classmethod Network.from_lines(lines, precision=None)
Construct a network from a set of lines represented by their start and end point coordinates.
- Parameters
lines (list[tuple[list[float, list[float]]]]) – A list of pairs of point coordinates.
precision (str, optional) – The precision of the geometric map that is used to connect the lines.
- Returns
Network
– A network object.