I want to write a Python script which I can execute from within QGIS 2.18 (from the Python console).
The Python script should calculate the nearest line (out of a set of lines) of a given point (out of a set of points) and I have already accomplished this task by manually using the NNJoin-Plugin. Now I want to automize this process within a python script, but I do not know how to run the NNJoin plugin within a Python script.
Is this even possible? If yes, could you give me some advice on how to accomplish this?