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

Method tile

src/nodejs/node_osrm.cpp:451–458  ·  view source on GitHub ↗

clang-format off * This generates [Mapbox Vector Tiles](https://mapbox.com/vector-tiles) that can be viewed with a * vector-tile capable slippy-map viewer. The tiles contain road geometries and metadata that can * be used to examine the routing graph. The tiles are generated directly from the data in-memory, * so are in sync with actual routing results, and let you examine which roads are actua

Source from the content-addressed store, hash-verified

449 */
450// clang-format on
451Napi::Value Engine::tile(const Napi::CallbackInfo &info)
452{
453 osrm::Status (osrm::OSRM::*tile_fn)(const osrm::TileParameters &params,
454 osrm::engine::api::ResultT &result) const =
455 &osrm::OSRM::Tile;
456 asyncForTiles(info, &argumentsToTileParameters, tile_fn, {/*unused*/});
457 return info.Env().Undefined();
458}
459
460// clang-format off
461/**

Callers 1

tile.jsFile · 0.80

Calls 1

asyncForTilesFunction · 0.85

Tested by

no test coverage detected