MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / route

Method route

src/nodejs/node_osrm.cpp:309–316  ·  view source on GitHub ↗

clang-format off * Returns the fastest route between two or more coordinates while visiting the waypoints in order. * * @name route * @memberof OSRM * @param {Object} options Object literal containing parameters for the route query. * @param {Array} [options.coordinates] The coordinates this request will use, coordinates as `[{lon},{lat}]` values, in decimal degrees. * @param {Array} [option

Source from the content-addressed store, hash-verified

307 */
308// clang-format on
309Napi::Value Engine::route(const Napi::CallbackInfo &info)
310{
311 osrm::Status (osrm::OSRM::*route_fn)(const osrm::RouteParameters &params,
312 osrm::engine::api::ResultT &result) const =
313 &osrm::OSRM::Route;
314 async(info, &argumentsToRouteParameter, route_fn, true);
315 return info.Env().Undefined();
316}
317
318// clang-format off
319/**

Callers 4

example.jsFile · 0.45
table.jsFile · 0.45
routeFunction · 0.45
route.jsFile · 0.45

Calls 1

asyncFunction · 0.85

Tested by

no test coverage detected