clang-format off * Snaps a coordinate to the street network and returns the nearest n matches. * * Note: `coordinates` in the general options only supports a single `{longitude},{latitude}` entry. * * @name nearest * @memberof OSRM * @param {Object} options - Object literal containing parameters for the nearest query. * @param {Array} [options.coordinates] The coordinates this request will
| 354 | */ |
| 355 | // clang-format on |
| 356 | Napi::Value Engine::nearest(const Napi::CallbackInfo &info) |
| 357 | { |
| 358 | osrm::Status (osrm::OSRM::*nearest_fn)(const osrm::NearestParameters ¶ms, |
| 359 | osrm::engine::api::ResultT &result) const = |
| 360 | &osrm::OSRM::Nearest; |
| 361 | async(info, &argumentsToNearestParameter, nearest_fn, false); |
| 362 | return info.Env().Undefined(); |
| 363 | } |
| 364 | |
| 365 | // clang-format off |
| 366 | /** |