s<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
    <dl><dt>l</dt>
<dd><p>A spatial lines object</p></dd>


<dt>p</dt>
<dd><p>A spatial points object</p></dd>

</dl></div>
    <div class="section level2">
    <h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
    
<ol><li><p>From A to P1 (P1 being the nearest point to A)</p></li>
<li><p>From P1 to P2 (P2 being the nearest point to B)</p></li>
<li><p>From P2 to B</p></li>
</ol></div>
    <div class="sec