title: Creating a Route from users geolocation using MapQuest Directions API
body: <p>I'm trying to create a route from the users current position to the target he chose. The problem is, i don't know how to get the users Latitude/Longitude into my route function which looks like this:</p>
  
  <pre><code>getRoute = function(){  
      dir = MQ.routing.directions()
          .on('success', function(data) {
              //does some stuff with the routes data/directions. not important here
          }); 
  
      dir.route({
          locations: [
              { latLng: { lat: USER LAT HERE, lng: USER LNG HERE } },         
              { latLng: { lat: (poiCoordinates.lat), lng: (poiCoordinates.lng) } }
          ],
          options: {          
              //not important as well         
          }
      }); 
  
      mqroute = MQ.routing.routeLayer({
          directions: dir,       
      }).addTo(map);
  };
  </code></pre>
  
  <p>The function above is called when the user selects a point of interest, for example a restaurant, and clicks the "find route" button. I have access to a <a href="http://leafletjs.com/reference.html#map-locate" rel="nofollow">Leaflet locate</a> function, but don't know how to combine them and get the users geolocation into the getRoute function above. Any suggestions for a way to do it? Cheers!</p>