{"id":23024699,"url":"https://github.com/oss/placesindex","last_synced_at":"2025-08-22T00:10:38.498Z","repository":{"id":145259995,"uuid":"12326048","full_name":"oss/placesindex","owner":"oss","description":"Indexes data about buildings \u0026 places at Rutgers","archived":false,"fork":false,"pushed_at":"2016-11-11T20:55:38.000Z","size":245,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-02-08T10:21:15.518Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2013-08-23T15:18:04.000Z","updated_at":"2016-11-11T20:55:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"17c684ef-2c00-4c6c-b970-ffe855d103c5","html_url":"https://github.com/oss/placesindex","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/oss%2Fplacesindex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oss%2Fplacesindex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oss%2Fplacesindex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oss%2Fplacesindex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oss","download_url":"https://codeload.github.com/oss/placesindex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246882981,"owners_count":20849360,"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-12-15T13:20:46.853Z","updated_at":"2025-04-02T19:41:30.482Z","avatar_url":"https://github.com/oss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# placesindex\n\nTakes a list of places and indexes it. Then, `completer.js` can be used to \nperform autocompletion \u0026 nearby queries using this index.\n\n## Testing\n\nThe API for getting all data about buildings requires a key. I've included a\ncopy of the database in the github repo for easy testing (`all`). You can\ntest the indexing by running `test.js`\n\n```\n$ node test\n```\n\nwhich will do some simple tests, including a nearby query with `kdtree`. You\ncan also then run manual_test\n\n```\n$ node manual_test\n```\n\nfor an interactive autocompletion test.\n\n## Client-side Usage\n\nTo get place completion \u0026 nearby queries, grab the database from the \nRU Mobile API server and\n\n```javascript\nvar completer = require('./completer');\nvar matches = completer.complete(database, \"hill\");\n// Returns places matching Hill\n\nmatches = completer.nearby(database, 40.521800, -74.460820);\n// Returns places nearby 40.521800, -74.460820\n```\n\nSee [api.rutgers.edu](api.rutgers.edu) for more information.\n\n## Projects used\n\n[lunr.js](https://github.com/olivernn/lunr.js)\n[kd-tree-javascript](https://github.com/ubilabs/kd-tree-javascript)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foss%2Fplacesindex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foss%2Fplacesindex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foss%2Fplacesindex/lists"}