{"id":15560528,"url":"https://github.com/tyrasd/geojson-stats","last_synced_at":"2025-04-23T21:10:35.407Z","repository":{"id":25183001,"uuid":"28606273","full_name":"tyrasd/geojson-stats","owner":"tyrasd","description":"calculate stats of GeoJSON properties ","archived":false,"fork":false,"pushed_at":"2022-09-25T01:11:07.000Z","size":7,"stargazers_count":8,"open_issues_count":4,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-28T16:46:09.119Z","etag":null,"topics":["geojson","javascript","statistics"],"latest_commit_sha":null,"homepage":null,"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/tyrasd.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-12-29T20:59:27.000Z","updated_at":"2020-10-23T02:18:02.000Z","dependencies_parsed_at":"2022-07-24T04:32:23.137Z","dependency_job_id":null,"html_url":"https://github.com/tyrasd/geojson-stats","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrasd%2Fgeojson-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrasd%2Fgeojson-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrasd%2Fgeojson-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrasd%2Fgeojson-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyrasd","download_url":"https://codeload.github.com/tyrasd/geojson-stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250514789,"owners_count":21443209,"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":["geojson","javascript","statistics"],"created_at":"2024-10-02T16:01:48.822Z","updated_at":"2025-04-23T21:10:35.383Z","avatar_url":"https://github.com/tyrasd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"geojson-stats\n=============\n\nCalculate statistics of [GeoJSON](http://geojson.org/) data.\n\nusage\n-----\n\n### as a **command line tool**:\n\n    npm install -g geojson-stats\n    geojson-stats file.geojson\n\n![](https://cloud.githubusercontent.com/assets/1927298/5631886/810c0464-95ca-11e4-85e3-883a129ed44d.png)\n\n### as a **library**:\n\n    npm install geojson-stats\n\n    var stats = require('geojson-stats');\n    console.log(stats(geojson));\n\nAPI\n---\n\n### `function( geojson, properties )`\n\n* `geojson`: GeoJSON data. Can be a FeatureCollection, Feature or Geometry object.\n* `properties`: optional. An array of property names for which stats should be gathered (in addition to line lengths and polygon areas).\n\nThe result is an array of objects containing the stats for each requested variable.\n\nLengths and areas are approximate calculations and given in [SI units](https://en.wikipedia.org/wiki/International_System_of_Units).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyrasd%2Fgeojson-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyrasd%2Fgeojson-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyrasd%2Fgeojson-stats/lists"}