{"id":21678233,"url":"https://github.com/sharedstreets/sharedstreets-geojson","last_synced_at":"2026-04-14T04:31:36.774Z","repository":{"id":91603842,"uuid":"124453687","full_name":"sharedstreets/sharedstreets-geojson","owner":"sharedstreets","description":"SharedStreets GeoJSON","archived":false,"fork":false,"pushed_at":"2018-03-09T03:25:39.000Z","size":7798,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-07T17:53:58.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/sharedstreets.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-03-08T22:05:23.000Z","updated_at":"2020-05-14T09:57:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"703ee674-a3b6-4bad-84d9-8f7525fb995b","html_url":"https://github.com/sharedstreets/sharedstreets-geojson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sharedstreets/sharedstreets-geojson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharedstreets%2Fsharedstreets-geojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharedstreets%2Fsharedstreets-geojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharedstreets%2Fsharedstreets-geojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharedstreets%2Fsharedstreets-geojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharedstreets","download_url":"https://codeload.github.com/sharedstreets/sharedstreets-geojson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharedstreets%2Fsharedstreets-geojson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31782736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"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":[],"created_at":"2024-11-25T14:27:22.606Z","updated_at":"2026-04-14T04:31:36.758Z","avatar_url":"https://github.com/sharedstreets.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SharedStreets GeoJSON\n\n[![npm version](https://badge.fury.io/js/sharedstreets-geojson.svg)](https://badge.fury.io/js/sharedstreets-geojson)\n[![Build Status](https://travis-ci.org/sharedstreets/sharedstreets-geojson.svg?branch=master)](https://travis-ci.org/sharedstreets/sharedstreets-geojson)\n\nConverts SharedStreets JSON to GeoJSON.\n\n## Install\n\n**In Node.js**\n\n```bash\n$ yarn add sharedstreets-geojson\n```\n\n**CommonJS**\n\n```js\nconst sharedstreetsGeoJSON = require('sharedstreets-geojson');\n```\n\n**Typescript**\n\n```js\nimport * as sharedstreetsGeoJSON from 'sharedstreets-geojson';\n```\n\n## In Browser\n\nFor a full list of web examples, check out [SharedStreets examples](https://github.com/sharedstreets/sharedstreets-examples).\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n#### Table of Contents\n\n-   [geometry](#geometry)\n-   [intersection](#intersection)\n\n### geometry\n\nGeometry\n\n**Parameters**\n\n-   `geom` **SharedStreetsGeometry** JSON SharedStreetsGeometry\n\n**Examples**\n\n```javascript\nconst line = [[110, 45], [115, 50], [120, 55]];\nconst geom = sharedstreets.geometry(line);\nconst geojson = sharedstreetsGeoJSON.geometry(geom)));\ngeojson // =\u003e Feature\u003cLineString, SharedStreetsGeometry\u003e\n```\n\nReturns **Feature\u0026lt;LineString, SharedStreetsGeometry\u003e** GeoJSON LineString Feature SharedSteetsGeometry\n\n### intersection\n\nIntersection\n\n**Parameters**\n\n-   `intersect` **SharedStreetsIntersection** JSON SharedStreetsIntersection\n\n**Examples**\n\n```javascript\nconst pt = [110, 45];\nconst intersect = sharedstreets.intersection(pt);\nconst geojson = sharedstreetsGeoJSON.intersection(intersect)));\ngeojson // =\u003e Feature\u003cPoint, SharedStreetsIntersection\u003e\n```\n\nReturns **Feature\u0026lt;Point, SharedStreetsIntersection\u003e** GeoJSON Point Feature SharedSteetsIntersection\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharedstreets%2Fsharedstreets-geojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharedstreets%2Fsharedstreets-geojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharedstreets%2Fsharedstreets-geojson/lists"}