{"id":13555848,"url":"https://github.com/pouchdb/geopouch","last_synced_at":"2025-09-03T11:30:53.820Z","repository":{"id":12016962,"uuid":"14599569","full_name":"pouchdb/geopouch","owner":"pouchdb","description":"Spatial plugin from PouchDB extracted and supporting N dimentional coordinates.","archived":false,"fork":false,"pushed_at":"2020-05-23T11:49:40.000Z","size":1585,"stargazers_count":85,"open_issues_count":17,"forks_count":14,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-12-07T20:57:16.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pouchdb.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pouchdb.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":"2013-11-21T20:57:12.000Z","updated_at":"2024-07-17T12:39:21.000Z","dependencies_parsed_at":"2022-07-15T14:47:47.509Z","dependency_job_id":null,"html_url":"https://github.com/pouchdb/geopouch","commit_stats":null,"previous_names":["calvinmetcalf/geopouch"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchdb%2Fgeopouch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchdb%2Fgeopouch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchdb%2Fgeopouch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchdb%2Fgeopouch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pouchdb","download_url":"https://codeload.github.com/pouchdb/geopouch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231874121,"owners_count":18439218,"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-08-01T12:03:27.332Z","updated_at":"2024-12-30T14:56:52.143Z","avatar_url":"https://github.com/pouchdb.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"readme":"Spatial Pouch [![Build Status](https://travis-ci.org/pouchdb/geopouch.svg?branch=rtree)](https://travis-ci.org/pouchdb/geopouch)\n====\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/pouchdb/geopouch.svg)](https://greenkeeper.io/)\n\nSpatial plugin from PouchDB extracted and supporting N dimensional coordinates.\n\nOriginally by [@vmx](https://github.com/vmx) with contribution by [@daleharvey](https://github.com/daleharvey) and [@calvinmetcalf](https://github.com/calvinmetcalf).\n\nTest with `npm test` coverage report with `npm test --coverage`, build with `npm run build`.\n\nAPI\n====\n\n`PouchDB.plugin(require('geopouch'));`\n\n`db.spatial(function (doc) {emit(doc.geometry);}, [xmin, ymin, xmax, ymax], options, callback);`\n\n`db.spatial('ddoc/functionName', [xmin, ymin, xmax, ymax], options, callback);`\n\n`db.spatial('ddoc/functionName', [[xmin, ymin], [xmax, ymax]], options, callback);`\n\n`db.spatial('ddoc/functionName', [[xmin, ymin, zmin], [xmax, ymax, zmax]], options, callback);`\n\n`db.spatial('ddoc/functionName', [xmin, ymin, zmin], [xmax, ymax, zmax], options, callback);`\n\n`db.spatial('ddoc/functionName', [xmin, ymin, xmax, ymax], options).then(function (result) {}, function (err) {});`\n\nyou may either give a function or a path to a ddoc, bounding boxes may be given in one of 3 formats\n\n- single array with 4 numbers, these are interpreted as `[xmin, ymin, xmax, ymax]`\n- single array with 2 arrays in it these are interpreted as `[[mins], [maxs]]`\n- 2 arrays with numbers in them, first one is interpreted as mins, second one as maxes\n\nIf the callback is omited then a promise is returned.\n\nOptions are optional and valid options are include_docs and stale\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpouchdb%2Fgeopouch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpouchdb%2Fgeopouch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpouchdb%2Fgeopouch/lists"}