5 years ago we wrote about this topic. Now 2 weeks ago @easbar has implemented a much easier method for this. Specify
path_details and you’ll get the indices for the
points array of the via points.
For more details about this read about it here.