BaseNetwork.from_lines

classmethod BaseNetwork.from_lines(lines, precision=None)[source]

Construct a network from a set of lines represented by their start and end point coordinates.

Parameters
  • lines (list) – 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.

Examples

>>>