{"id":19840698,"url":"https://github.com/graphhopper/directions-api-js-client","last_synced_at":"2026-02-12T14:13:16.521Z","repository":{"id":27180369,"uuid":"30650201","full_name":"graphhopper/directions-api-js-client","owner":"graphhopper","description":"JavaScript client for the GraphHopper Directions API","archived":false,"fork":false,"pushed_at":"2025-12-02T15:49:39.000Z","size":4564,"stargazers_count":121,"open_issues_count":4,"forks_count":84,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-12-05T13:51:20.043Z","etag":null,"topics":["api"],"latest_commit_sha":null,"homepage":"https://graphhopper.com/api/1/examples","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graphhopper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-02-11T13:59:58.000Z","updated_at":"2025-12-02T15:49:32.000Z","dependencies_parsed_at":"2024-06-19T01:26:57.336Z","dependency_job_id":"bd47861f-8de5-40c6-a98f-525a9c37fff7","html_url":"https://github.com/graphhopper/directions-api-js-client","commit_stats":{"total_commits":153,"total_committers":9,"mean_commits":17.0,"dds":0.607843137254902,"last_synced_commit":"438f2a01b2688fac1dfe0b98ab8e35cf8dae113b"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/graphhopper/directions-api-js-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphhopper%2Fdirections-api-js-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphhopper%2Fdirections-api-js-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphhopper%2Fdirections-api-js-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphhopper%2Fdirections-api-js-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphhopper","download_url":"https://codeload.github.com/graphhopper/directions-api-js-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphhopper%2Fdirections-api-js-client/sbom","scorecard":{"id":443769,"data":{"date":"2025-08-11","repo":{"name":"github.com/graphhopper/directions-api-js-client","commit":"5ee8691aa53c2c97ce5b60bb084eb190192d9028"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/push-package.yml:1","Warn: no topLevel permission defined: .github/workflows/run-tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push-package.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/graphhopper/directions-api-js-client/push-package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push-package.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/graphhopper/directions-api-js-client/push-package.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/push-package.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/graphhopper/directions-api-js-client/push-package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-tests.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/graphhopper/directions-api-js-client/run-tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-tests.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/graphhopper/directions-api-js-client/run-tests.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/push-package.yml:13","Warn: npmCommand not pinned by hash: .github/workflows/run-tests.yml:13","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T06:12:11.383Z","repository_id":27180369,"created_at":"2025-08-19T06:12:11.384Z","updated_at":"2025-08-19T06:12:11.384Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29368095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api"],"created_at":"2024-11-12T12:27:50.346Z","updated_at":"2026-02-12T14:13:16.516Z","avatar_url":"https://github.com/graphhopper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript client for the Directions API\n\nThis project offers JavaScript clients for the [GraphHopper Directions API](https://www.graphhopper.com).\n\n## Getting Started\n\n### NPM\n\nInstall the lib with npm:\n\n```npm install @graphhopper/directions-api-js-client --save```\n\nNote the different package name in the @graphhopper organization since 15th September 2025.\n\nYou can either require the whole client enabling you to use every GraphHopper API, but you can also only require the pieces you need.\n\n```javascript\nrequire('@graphhopper/directions-api-js-client');\n \nwindow.onload = function() {\n  let defaultKey = \"[Sign-up for free and get your own key: https://www.graphhopper.com/products/]\";\n  let ghRouting = new GraphHopper.Routing({key: defaultKey}, {profile:\"car\", elevation: false});\n\n  ghRouting.doRequest({points:[[8.534317, 47.400905], [8.538265, 47.394108]]})\n    .then(json =\u003e {\n       // Add your own result handling here\n       console.log(json);\n    })\n    .catch(err =\u003e {\n       console.error(err.message);\n    });\n};\n```\n\n## Running Tests\n\nIn order to run the tests, you have to register for a key on [GraphHopper](https://www.graphhopper.com/).\nEither set your key as environment variable using `export GHKEY=YOUR_KEY` or set your key in `spec/helpers/config.js`.\nYou can run all tests via `npm test`. \nIf you only want to run a single spec file, you can use the `--spec` option, e.g., `npm test --spec spec/GraphHopperRoutingSpec.js`.\n\n## Integrate the APIs in your application\n\nYou can either use our [bundled version](./dist/graphhopper-client.js), including all APIs or you can use only the \npieces you need.\n\n### GraphHopper Routing API\n\n![GraphHopper Routing API screenshot](./img/screenshot-routing.png)\n\nYou need [the routing client](./src/GraphHopperRouting.js).\n\nThere is also a different client developed from the community [here](https://www.npmjs.com/package/lrm-graphhopper).\n\n### GraphHopper Route Optimization API\n\n![Route Optimization API screenshot](./img/screenshot-vrp.png)\n\nYou need [the optimization client](./src/GraphHopperOptimization.js).\n\n### GraphHopper Isochrone API\n\n![GraphHopper Isochrone API screenshot](https://github.com/graphhopper/directions-api-js-client/blob/master/img/screenshot-isochrone.png)\n\nYou need [the isochrone client](./src/GraphHopperIsochrone.js)\n\n### GraphHopper Matrix API\n\n![GraphHopper Matrix API screenshot](./img/screenshot-matrix.png)\n\nYou need [the matrix client](./src/GraphHopperMatrix.js).\n\n### GraphHopper Geocoding API\n\n![GraphHopper Geocoding API screenshot](./img/screenshot-geocoding.png)\n\nYou need [the geocoding client](./src/GraphHopperGeocoding.js).\n\n### GraphHopper Map Matching API\n\n![GraphHopper Map Matching API screenshot](./img/screenshot-map-matching.png)\n\nYou need [the map matching client](./src/GraphHopperMapMatching.js) and the \n[togeojson.js](./js/togeojson.js)\n\n## Releasing a new Version to NPM\n\nSet the version you like to publish in the `package.json`. Every version can only be published once and cannot be overwritten.\n\nTag the commit you like to publish for example like this:\n```\ngit log # get the commit hash of the commit you want to tag\ngit tag \u003ctag\u003e \u003ccommit-hash\u003e\ngit push origin --tag \u003ctag\u003e\n```\n\nGitHub will then build and publish the commit to NPM.\n\n## License\n\nCode stands under Apache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphhopper%2Fdirections-api-js-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphhopper%2Fdirections-api-js-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphhopper%2Fdirections-api-js-client/lists"}