{"id":16884486,"url":"https://github.com/timwis/soda-geoservices","last_synced_at":"2025-04-11T12:24:29.276Z","repository":{"id":57365657,"uuid":"47083600","full_name":"timwis/soda-geoservices","owner":"timwis","description":"Query Esri Geoservices using a SODA2-style API","archived":false,"fork":false,"pushed_at":"2015-12-17T12:37:36.000Z","size":38,"stargazers_count":7,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T04:35:49.572Z","etag":null,"topics":[],"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/timwis.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":"2015-11-29T22:49:56.000Z","updated_at":"2022-05-02T01:31:49.000Z","dependencies_parsed_at":"2022-08-23T20:10:16.223Z","dependency_job_id":null,"html_url":"https://github.com/timwis/soda-geoservices","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Fsoda-geoservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Fsoda-geoservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Fsoda-geoservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwis%2Fsoda-geoservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timwis","download_url":"https://codeload.github.com/timwis/soda-geoservices/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248401487,"owners_count":21097328,"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":[],"created_at":"2024-10-13T16:28:33.186Z","updated_at":"2025-04-11T12:24:29.257Z","avatar_url":"https://github.com/timwis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SODA GeoServices\n[![Build Status](https://travis-ci.org/timwis/soda-geoservices.svg?branch=master)](https://travis-ci.org/timwis/soda-geoservices)\n[![Coverage Status](https://coveralls.io/repos/timwis/soda-geoservices/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/timwis/soda-geoservices?branch=master)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\nQuery [Esri Geoservices](http://geoservices.github.io/) using a [SODA2](https://dev.socrata.com/docs/queries/)-style API\n\nThis is still a work in progress. Check out the [list of features](https://github.com/timwis/soda-geoservices/issues/1) and\n[tests](test/query.test.js) to get an idea for the functionality.\n\n## Why?\nGeoservices are incredibly powerful but have a complex query structure as a result, and\ncan be intimidating for new users - particularly when you want to do a basic query\nlike a [group by](http://geoservices.github.io/query.html#aggregation-statistics).\nThis tool provides a layer of abstraction - an easy-to-use API for common queries.\nIt is not meant to cover the breadth of functionality geoservices provide; rather just\nthose provided by the SODA2 spec.\n\n## Examples\nUsing `https://services.arcgis.com/fLeGjb7u4uXqeF9q/ArcGIS/rest/services`\n\n* [/Storefront_Improvement_Programs/FeatureServer/0](http://soda-geoservices.herokuapp.com/Storefront_Improvement_Programs/FeatureServer/0)\n* [/Storefront_Improvement_Programs/FeatureServer/0?relations=Mayfair CDC](http://soda-geoservices.herokuapp.com/Storefront_Improvement_Programs/FeatureServer/0?relations=Mayfair CDC)\n* [/Storefront_Improvement_Programs/FeatureServer/0?$select=funded_by, count(*)\u0026$group=funded_by](http://soda-geoservices.herokuapp.com/Storefront_Improvement_Programs/FeatureServer/0?$select=funded_by, count(*)\u0026$group=funded_by)\n* [/Storefront_Improvement_Programs/FeatureServer/0?$select=extent(geometry)](http://soda-geoservices.herokuapp.com/Storefront_Improvement_Programs/FeatureServer/0?$select=extent(geometry))\n* [/Storefront_Improvement_Programs/FeatureServer/0?$where=within_circle(geometry, 39.9520, -75.1646, 100)](http://soda-geoservices.herokuapp.com/Storefront_Improvement_Programs/FeatureServer/0?$where=within_circle(geometry, 39.9520, -75.1646, 100))\n* [/Storefront_Improvement_Programs/FeatureServer/0?$where=within_box(geometry, 39.9537, -75.1577, 39.9623, -75.1422)](http://soda-geoservices.herokuapp.com/Storefront_Improvement_Programs/FeatureServer/0?$where=within_box(geometry, 39.9537, -75.1577, 39.9623, -75.1422))\n\n## Usage\n1. Clone this repo and install dependencies via `npm install`\n2. Copy `.env.sample` to `.env` and fill in `PROXY_TO` with the path to your Geoservices (ex. `http://maps2.dcgis.dc.gov/dcgis/rest/services/`)\nand any default parameters in `DEFAULT_PARAMS` in `a=b\u0026c=d` format\n3. Run the server via `npm start`\n4. Append the service to your URL and use SODA2 querystring parameters\n\nFor example:\n```\nhttp://localhost:8080/DDOT/AlleyConditions/MapServer/0?alley_material=Asphalt\n```\n\n## Development\n* Write tests first and run them via `npm test`\n* Lint the code style via `npm run lint` (uses [standard](http://standardjs.com))\n\n## References\n* [GeoServices Documentation](http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Map_Service_Layer/02r3000000p1000000/)\n* [SODA2 Documentation](https://dev.socrata.com/docs/queries/)\n* [Supported functions for ArcGIS Server](http://resources.arcgis.com/en/help/main/10.2/index.html#//015400000686000000) (v10.2)\n* [Validate SQL](https://services.arcgis.com/fLeGjb7u4uXqeF9q/arcgis/rest/services/APPEALS_LIRB/FeatureServer/0/validateSQL)\n\n## License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwis%2Fsoda-geoservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimwis%2Fsoda-geoservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwis%2Fsoda-geoservices/lists"}