{"action":"created","issue":{"url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/145","labels_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/145/comments","events_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/145/events","html_url":"https://github.com/perliedman/leaflet-routing-machine/issues/145","id":102748803,"number":145,"title":"Use without attaching to a map ","user":{"login":"matbeard","id":1549469,"avatar_url":"https://avatars.githubusercontent.com/u/1549469?v=3","gravatar_id":"","url":"https://api.github.com/users/matbeard","html_url":"https://github.com/matbeard","followers_url":"https://api.github.com/users/matbeard/followers","following_url":"https://api.github.com/users/matbeard/following{/other_user}","gists_url":"https://api.github.com/users/matbeard/gists{/gist_id}","starred_url":"https://api.github.com/users/matbeard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matbeard/subscriptions","organizations_url":"https://api.github.com/users/matbeard/orgs","repos_url":"https://api.github.com/users/matbeard/repos","events_url":"https://api.github.com/users/matbeard/events{/privacy}","received_events_url":"https://api.github.com/users/matbeard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T09:34:16Z","updated_at":"2015-08-24T10:34:52Z","closed_at":"2015-08-24T10:34:52Z","body":"Is it possible to use the routing machine without attaching it to a map?\r\n\r\nI really just need to get a route summary from A to B (optionally via C), where A, B and C need to be geocoded. I don't need to display the route, just get the total travel time and distance.\r\n\r\nI know it's possible to use the Geocoder without a map, but not sure about the routing machine.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/comments/134140572","html_url":"https://github.com/perliedman/leaflet-routing-machine/issues/145#issuecomment-134140572","issue_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/145","id":134140572,"user":{"login":"perliedman","id":1246614,"avatar_url":"https://avatars.githubusercontent.com/u/1246614?v=3","gravatar_id":"","url":"https://api.github.com/users/perliedman","html_url":"https://github.com/perliedman","followers_url":"https://api.github.com/users/perliedman/followers","following_url":"https://api.github.com/users/perliedman/following{/other_user}","gists_url":"https://api.github.com/users/perliedman/gists{/gist_id}","starred_url":"https://api.github.com/users/perliedman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perliedman/subscriptions","organizations_url":"https://api.github.com/users/perliedman/orgs","repos_url":"https://api.github.com/users/perliedman/repos","events_url":"https://api.github.com/users/perliedman/events{/privacy}","received_events_url":"https://api.github.com/users/perliedman/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T10:34:52Z","updated_at":"2015-08-24T10:34:52Z","body":"Yes, you can use the class `L.Routing.OSRM` (or equivalent for the other router backends) directly. It has a `route` method that you need to pass the geocoded waypoints to, and a callback for handling the result; the result will include travel time and distance.\r\n\r\nSee ['IRouter`](http://www.liedman.net/leaflet-routing-machine/api/#irouter) and [`IRoute`](http://www.liedman.net/leaflet-routing-machine/api/#iroute) API docs."}}