So i am trying to use an ESRI Route service in a Leaflet map using https://github.com/jgravois/lrm-esri and am getting an error that maybe someone can help me with. Even using the code provided at git, i still seem to get the error, it would seem it worked at one time.
{status: -3, message: "TypeError: Cannot read property 'lat' of undefined"}
here is the js
var control = L.Routing.control({
waypoints: [
L.latLng(28.4644,-99.0236),
L.latLng(28.4758,-98.6424)
],
router: L.Routing.esri({
//this is a sample service, i am using one i created using private roads
serviceUrl: 'https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Route'
}),
geocoder: L.Control.Geocoder.nominatim(),
routeWhileDragging: true,
reverseWaypoints: true
}).addTo(map);
L.Routing.errorControl(control).addTo(map);
Has anyone gotten the lrm-esri to work recently? The service is working for solve route, but it must be a way the js is passing the lat longs to the service?