title: Why does my custom OSRM server not give alternative routes as map.project-osrm.org?
body: <p>I have set up a custom OSRM server using docker as explained <a href="https://github.com/Project-OSRM/osrm-backend" rel="nofollow noreferrer">here</a>. And I have a web application which shows routes between 2 locations. I am using <a href="https://www.liedman.net/leaflet-routing-machine/" rel="nofollow noreferrer">leaflet routing machine</a> which pointed to the custom OSRM server as follows,</p>
  <pre><code>L.Routing.control({
      waypoints: [
        L.latLng(lat, long),
        L.latLng(lat, long)
      ],
      router: L.Routing.osrmv1({
        serviceUrl: &quot;url&quot;,
      }),
      draggableWaypoints: false,
      routeWhileDragging: true,
      showAlternatives: true,
    });
  </code></pre>
  <p>The issue I am facing is that I tried exactly the same 3 different routes with my custom server and also with <a href="https://map.project-osrm.org" rel="nofollow noreferrer">map.project-osrm.org</a> free demo version. Following are the alternative route differences I got,</p>
  <p><strong>New York to Syracuse</strong></p>
  <blockquote>
  <p>(OSRM Free Demo Version Result) and this shows an alternative route
  but my custom server doesn't.</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/jRQVI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jRQVI.jpg" alt="ny-sy" /></a></p>
  <blockquote>
  <p>(My Custom OSRM Server Result)</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/lsyCj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lsyCj.jpg" alt="ny-sy" /></a></p>
  <p><strong>New York to Maryland</strong></p>
  <blockquote>
  <p>(OSRM Free Demo Version Result) and this shows an alternative route
  but my custom server doesn't.</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/S1qnY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S1qnY.jpg" alt="ny-md" /></a></p>
  <blockquote>
  <p>(My Custom OSRM Server Result)</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/woWnQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/woWnQ.jpg" alt="ny-md" /></a></p>
  <p><strong>New York to Los Angeles</strong></p>
  <blockquote>
  <p>(OSRM Free Demo Version Result) and this is a bit strange because I am
  getting an alternative route in my custom server but it is a little different
  to one shows on this Free Demo Version as follows,</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/3k4A0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3k4A0.jpg" alt="ny-la" /></a></p>
  <blockquote>
  <p>(My Custom OSRM Server Result)</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/BeCAS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BeCAS.png" alt="ny-la" /></a></p>
  <p>I need to know why is this happening. Anything I am doing wrong or is there a way to resolve this issue? Thanks in advance.</p>