I am writing a QGIS processing algorithm that reads rows including addresses from a CSV file. The addresses are geocoded one by one via external REST API and then a vector layer containing the point features corresponding each row is created. The layer is saved to a file and possibly also opened in the QGIS.
I am using QGIS 3.0 but if someone knows how this should be handled in QGIS 2.x that would also be helpful. I am planning to use the
PyQt5.QtNetwork module for the REST API calls.
Is it possible to do the REST API calls asynchronously and when they all have finished then finish the processing algorithm?
If not, what is the proper way to handle this kind of process?