{"id":17204401,"url":"https://github.com/urschrei/polyline-ffi","last_synced_at":"2026-02-28T01:13:05.808Z","repository":{"id":10022488,"uuid":"64122372","full_name":"urschrei/polyline-ffi","owner":"urschrei","description":"FFI Bindings for the rust-polyline crate","archived":false,"fork":false,"pushed_at":"2025-11-24T13:33:49.000Z","size":3532,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-28T02:41:32.821Z","etag":null,"topics":["computational-geometry","ffi-bindings","polyline"],"latest_commit_sha":null,"homepage":"https://docs.rs/polyline-ffi","language":"Rust","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/urschrei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2016-07-25T09:39:26.000Z","updated_at":"2025-11-24T13:33:46.000Z","dependencies_parsed_at":"2024-05-02T22:37:29.031Z","dependency_job_id":"d5f2468a-0d3a-4615-982f-dfd03e6570a1","html_url":"https://github.com/urschrei/polyline-ffi","commit_stats":{"total_commits":124,"total_committers":4,"mean_commits":31.0,"dds":0.5161290322580645,"last_synced_commit":"ebfb30cc00abdb0fc469ac203c87bcc3eea8be54"},"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"purl":"pkg:github/urschrei/polyline-ffi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urschrei%2Fpolyline-ffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urschrei%2Fpolyline-ffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urschrei%2Fpolyline-ffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urschrei%2Fpolyline-ffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urschrei","download_url":"https://codeload.github.com/urschrei/polyline-ffi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urschrei%2Fpolyline-ffi/sbom","scorecard":{"id":912101,"data":{"date":"2025-08-11","repo":{"name":"github.com/urschrei/polyline-ffi","commit":"4fc60c84c66a46ac462cdb9a94c94e803c439766"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/22 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.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":"Maintained","score":5,"reason":"6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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/test.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/urschrei/polyline-ffi/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/urschrei/polyline-ffi/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/urschrei/polyline-ffi/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:93: update your workflow using https://app.stepsecurity.io/secureworkflow/urschrei/polyline-ffi/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:94: update your workflow using https://app.stepsecurity.io/secureworkflow/urschrei/polyline-ffi/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/urschrei/polyline-ffi/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:102: update your workflow using https://app.stepsecurity.io/secureworkflow/urschrei/polyline-ffi/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:173: update your workflow using https://app.stepsecurity.io/secureworkflow/urschrei/polyline-ffi/test.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction 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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license.txt:0","Info: FSF or OSI recognized license: MIT License: license.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.7.4 not signed: https://api.github.com/repos/urschrei/polyline-ffi/releases/235089913","Warn: release artifact v0.7.1 not signed: https://api.github.com/repos/urschrei/polyline-ffi/releases/155568213","Warn: release artifact v0.7.0 not signed: https://api.github.com/repos/urschrei/polyline-ffi/releases/155567584","Warn: release artifact v0.6.6 not signed: https://api.github.com/repos/urschrei/polyline-ffi/releases/153902003","Warn: release artifact v0.6.5 not signed: https://api.github.com/repos/urschrei/polyline-ffi/releases/153086152","Warn: release artifact v0.7.4 does not have provenance: https://api.github.com/repos/urschrei/polyline-ffi/releases/235089913","Warn: release artifact v0.7.1 does not have provenance: https://api.github.com/repos/urschrei/polyline-ffi/releases/155568213","Warn: release artifact v0.7.0 does not have provenance: https://api.github.com/repos/urschrei/polyline-ffi/releases/155567584","Warn: release artifact v0.6.6 does not have provenance: https://api.github.com/repos/urschrei/polyline-ffi/releases/153902003","Warn: release artifact v0.6.5 does not have provenance: https://api.github.com/repos/urschrei/polyline-ffi/releases/153086152"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T19:35:20.303Z","repository_id":10022488,"created_at":"2025-08-24T19:35:20.303Z","updated_at":"2025-08-24T19:35:20.303Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29922071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"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":["computational-geometry","ffi-bindings","polyline"],"created_at":"2024-10-15T02:21:39.181Z","updated_at":"2026-02-28T01:13:05.775Z","avatar_url":"https://github.com/urschrei.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test and Build](https://github.com/urschrei/polyline-ffi/actions/workflows/test.yml/badge.svg)](https://github.com/urschrei/polyline-ffi/actions/workflows/test.yml) [![Coverage Status](https://coveralls.io/repos/github/urschrei/polyline-ffi/badge.svg?branch=master)](https://coveralls.io/github/urschrei/polyline-ffi?branch=master)\n\n# FFI Bindings for the [rust-polyline](https://github.com/georust/rust-polyline) Crate\nA Python implementation using these bindings is available at [pypolyline](https://github.com/urschrei/pypolyline)\n\n## A Note on Coordinate Order\n\nThis crate uses `Coordinate` and `LineString` types from the `geo-types` crate, which encodes coordinates in `(x, y)` order. The Polyline algorithm and first-party documentation assumes the _opposite_ coordinate order. It is thus advisable to pay careful attention to the order of the coordinates you use for encoding and decoding.\n\n## `decode_polyline_ffi`\nConvert a Polyline into an array of coordinates.  \nCallers must pass two arguments:\n\n- a pointer to a `NUL`-terminated character array (`char*`)\n- an unsigned 32-bit `int` for precision (`5` for Google Polylines, `6` for OSRM and Valhalla Polylines)  \n\nReturns an `Array` struct with two fields:\n- `data`, a void pointer to a nested double-precision float array: e.g. `[[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]]`\n- `len`, an integer of type `size_t`, denoting the array length, e.g. `3`\n\nCallers must then call `drop_float_array` to free the memory allocated by this function.\n\n## `drop_float_array`\nFree memory pointed to by `Array`, which Rust has allocated across the FFI boundary.  \nCallers must pass the same `Array` struct that was received from `decode_polyline_ffi`.\n\n## `encode_coordinates_ffi`\nConvert coordinates into a Polyline.  \nCallers must pass a struct, with two members:\n- `data`, a void pointer to a nested double-precision float array: e.g. `[[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]]`\n- `len`, the array length, e.g. `3`\n\nReturns a pointer to a C character array (`char*`).  \nCallers must then call `drop_cstring` to free the memory allocated by this function.\n\n## `drop_cstring`\nFree memory pointed to by `char*`, which Rust has allocated across the FFI boundary.  \nCallers must pass the same `char*` they receive from `encode_coordinates_ffi`.\n\n# Binaries\nCompressed binaries are available for Linux (64-bit), OSX (64-bit), and Windows (32-bit and 64-bit), from the [releases](https://github.com/urschrei/polyline-ffi/releases) page.  \nThe Linux binary has been built using the manylinux2014 Docker image, and is widely compatible.  \nBoth Linux and OSX binaries have been built with `rpath` support.\n\n# License\n[MIT](license.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furschrei%2Fpolyline-ffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furschrei%2Fpolyline-ffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furschrei%2Fpolyline-ffi/lists"}