{"id":17288900,"url":"https://github.com/stepankuzmin/distance-matrix","last_synced_at":"2025-04-14T11:14:46.739Z","repository":{"id":47423067,"uuid":"51248679","full_name":"stepankuzmin/distance-matrix","owner":"stepankuzmin","description":"Calculate distance matrix of arbitrary size using The Open Source Routing Machine","archived":false,"fork":false,"pushed_at":"2023-07-11T20:42:24.000Z","size":518,"stargazers_count":14,"open_issues_count":13,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T21:44:10.225Z","etag":null,"topics":["distance-matrix","javascript","library","node","osrm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stepankuzmin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-07T13:35:49.000Z","updated_at":"2024-03-09T08:17:39.000Z","dependencies_parsed_at":"2022-08-23T13:00:28.687Z","dependency_job_id":null,"html_url":"https://github.com/stepankuzmin/distance-matrix","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepankuzmin%2Fdistance-matrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepankuzmin%2Fdistance-matrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepankuzmin%2Fdistance-matrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepankuzmin%2Fdistance-matrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stepankuzmin","download_url":"https://codeload.github.com/stepankuzmin/distance-matrix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219844365,"owners_count":16556485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distance-matrix","javascript","library","node","osrm"],"created_at":"2024-10-15T10:32:33.113Z","updated_at":"2024-10-15T10:32:33.913Z","avatar_url":"https://github.com/stepankuzmin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSRM distance matrix\n\n[![Build Status](https://travis-ci.org/stepankuzmin/distance-matrix.svg?branch=master)](https://travis-ci.org/stepankuzmin/distance-matrix)\n\n**Warning**: this is experimental.\n\nCalculate large distance matrix using [The Open Source Routing Machine](http://project-osrm.org/)\n\n## Installation\n\n```shell\nnpm install distance-matrix\n```\n\n...or build from source\n\n```shell\ngit clone https://github.com/stepankuzmin/distance-matrix.git\ncd distance-matrix\nnpm install\n```\n\n## Build\n\nAn osrm file is required for routing. This can be generated using included binaries. (_Note: this will take a lot of processing power if you are planning to use the entire planet.osm file, for general use a regional OSM data extract is preferable. More info [here](https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM)_)\n\n```sh\n# first download an osm file containing the area you need\n./node_modules/distance-matrix/osrm/lib/binding/osrm-extract mydata.osm -p ./node_modules/distance-matrix/osrm/test/data/car.lua\n./node_modules/distance-matrix/osrm/lib/binding/osrm-prepare mydata.osrm -p ./node_modules/distance-matrix/osrm/test/data/car.lua\n```\n\n## Usage\n\nSee the [API](https://github.com/stepankuzmin/distance-matrix/blob/master/docs/API.md), `examples/tsv/index.js` and `test/index.js` for examples of calculating large distance matrices.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepankuzmin%2Fdistance-matrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepankuzmin%2Fdistance-matrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepankuzmin%2Fdistance-matrix/lists"}