{"id":13426435,"url":"https://github.com/mapbox/leaflet-pip","last_synced_at":"2026-02-22T01:03:49.361Z","repository":{"id":7703296,"uuid":"9067906","full_name":"mapbox/leaflet-pip","owner":"mapbox","description":"point in polygon intersections for leaflet","archived":false,"fork":false,"pushed_at":"2025-10-07T19:32:14.000Z","size":164,"stargazers_count":204,"open_issues_count":9,"forks_count":44,"subscribers_count":123,"default_branch":"gh-pages","last_synced_at":"2026-01-24T18:39:05.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mapbox.github.io/leaflet-pip/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mapbox.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-28T01:53:11.000Z","updated_at":"2025-11-30T00:24:47.000Z","dependencies_parsed_at":"2022-09-02T08:50:11.255Z","dependency_job_id":null,"html_url":"https://github.com/mapbox/leaflet-pip","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mapbox/leaflet-pip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fleaflet-pip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fleaflet-pip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fleaflet-pip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fleaflet-pip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapbox","download_url":"https://codeload.github.com/mapbox/leaflet-pip/tar.gz/refs/heads/gh-pages","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fleaflet-pip/sbom","scorecard":{"id":616483,"data":{"date":"2025-08-11","repo":{"name":"github.com/mapbox/leaflet-pip","commit":"429275c73c9968a305ab059820cb1be2a3acc281"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Code-Review","score":0,"reason":"Found 2/26 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":-1,"reason":"no workflows found","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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 2-Clause \"Simplified\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/mapbox/.github/SECURITY.md:1","Info: Found linked content: github.com/mapbox/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/mapbox/.github/SECURITY.md:1","Info: Found text in security policy: github.com/mapbox/.github/SECURITY.md:1"],"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":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'gh-pages'","Info: 'force pushes' disabled on branch 'gh-pages'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'gh-pages'","Warn: 'stale review dismissal' is disabled on branch 'gh-pages'","Warn: required approving review count is 1 on branch 'gh-pages'","Warn: codeowners review is not required on branch 'gh-pages'","Warn: 'last push approval' is disabled on branch 'gh-pages'","Warn: no status checks found to merge onto branch 'gh-pages'","Info: PRs are required in order to make changes on branch 'gh-pages'"],"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 8 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-21T04:08:55.943Z","repository_id":7703296,"created_at":"2025-08-21T04:08:55.943Z","updated_at":"2025-08-21T04:08:55.943Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29701949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-07-31T00:01:34.459Z","updated_at":"2026-02-22T01:03:49.324Z","avatar_url":"https://github.com/mapbox.png","language":"JavaScript","readme":"## point in polygon for Leaflet\n\n[![build status](https://secure.travis-ci.org/mapbox/leaflet-pip.png)](http://travis-ci.org/mapbox/leaflet-pip)\n\nA [Leaflet](http://leafletjs.com/)-friendly API for [point in polygon](http://en.wikipedia.org/wiki/Point_in_polygon)\noperations, using [substack](https://github.com/substack)'s\n[point in polygon](https://github.com/substack/point-in-polygon) library.\n\n## install\n\nWith browserify\n\n    npm install @mapbox/leaflet-pip\n\nResolve for a CDN/packaged version:\n\n    https://unpkg.com/@mapbox/leaflet-pip@latest/leaflet-pip.js\n\n## example\n\n```\nvar gjLayer = L.geoJson(statesData);\nvar results = leafletPip.pointInLayer([-88, 38], gjLayer);\n// results is an array of L.Polygon objects containing that point\n```\n\n## api\n\n### `leafletPip.pointInLayer(point, layer L.GeoJSON, [first])`\n\nPoint can be:\n\n* A two-element array of `[lng, lat]`\n* A `L.LatLng` object\n\nLayer must be:\n\n* A `L.geoJSON` layer\n\n`first` can be:\n\n* `boolean`: `true` to accept the first match, or `false` to return all\n  polygons containing this point. This can be useful if you know that your\n  polygons are non-overlapping or don't care about more than one result,\n  since it will be much faster. By default, **this is false** and all matches\n  are returned.\n\nReturns:\n\nAn array of polygons in which the given point resides, an empty array if there\nare none. The polygons are returned as direct sublayers, so they can include\nMultiPolygons. You can call `pointInLayer` again on those if you want the\nsub-polygon result.\n\n### `leafletPip.bassackwards`\n\nLeaflet treats literate coordinate arrays as `[lat, lon]`, unlike GeoJSON\nand [any true scotsman](http://en.wikipedia.org/wiki/No_true_Scotsman). `leaflet-pip`\ntreats literate coordinate arrays as `[lon, lat]`, but if you set `bassackwards`\nto true, it'll do things the Leaflet/Google Maps API way.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapbox%2Fleaflet-pip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapbox%2Fleaflet-pip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapbox%2Fleaflet-pip/lists"}