{"id":19188303,"url":"https://github.com/mathdroid/campusmap","last_synced_at":"2025-05-08T02:46:07.406Z","repository":{"id":67669428,"uuid":"64530489","full_name":"mathdroid/campusmap","owner":"mathdroid","description":"Campus Map API for Institut Teknologi Bandung. 🗺","archived":false,"fork":false,"pushed_at":"2016-08-12T11:48:59.000Z","size":3251,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T06:34:55.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/mathdroid.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-30T06:43:31.000Z","updated_at":"2022-05-06T17:00:54.000Z","dependencies_parsed_at":"2023-02-27T14:30:34.297Z","dependency_job_id":null,"html_url":"https://github.com/mathdroid/campusmap","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/mathdroid%2Fcampusmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathdroid%2Fcampusmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathdroid%2Fcampusmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathdroid%2Fcampusmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathdroid","download_url":"https://codeload.github.com/mathdroid/campusmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252989941,"owners_count":21836665,"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-11-09T11:24:20.024Z","updated_at":"2025-05-08T02:46:07.400Z","avatar_url":"https://github.com/mathdroid.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e- c a m p u s m a p -\u003c/h1\u003e\n\u003cp align=\"center\"\u003e- by Muhammad Mustadi -\u003c/p\u003e\n\n\u003ch5 align=\"center\"\u003eFinding coordinates of Institut Teknologi Bandung's rooms and buildings has never been this easy.\u003c/h5\u003e\n\n\u003chr /\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cimg align=\"center\" src=\"/72-Labtek VI-Dapur.png\" /\u003e\n\u003c/div\u003e\n\n# INSTALLATION\n\n\u003e Tested on Node v6.3.1\n\n1. `$ git clone PATH_TO_THIS_REPO` this repository\n\n2. `$ npm install`\n\n3. `$ node index.js`\n\n# RESULT\n\n`init.js` will provide results in data/ folder.\n\n1. `database.js` which will export (CommonJS) 5 things:\n  1. `buildings` which is an `array` of building objects.\n  2. `floors` which is an `array` of floor objects.\n  3. `rooms` which is an `array` of room objects.\n  4. `polygonsOfFloors` which is an `array` of floor objects, but instead of rooms they have polygons of each room in that floor.\n  5. `validatedPolygons` which is an `array` of polygons fetched using the rooms of `rooms` array.\n2. `db.min.json` which contains `buildings`, `floors`, `rooms`, `polygonsOfFloors`, `validatedPolygons` in a JSON (not prettified) format.\n3. `db${key}.min.json` with one of the key from above, contains their value, respectively.\n\n\n\n# TODO\n\n- [x] Map each floor in a building for its rooms.\n\n- [x] API server\n  - [x] Rooms\n  - [x] Floors\n  - [x] Buildings\n  - [x] Floor Polygons\n  - [x] Room Polygons\n\n\n- [ ] Create Android Client\n\n- [ ] Create iOS Client\n\n# SERVER\n\n\u003e Requires MongoDB\n\nAfter running init, seed the Mongo database using `server/seed.js` or manually with the data from `data/`\n\nRun `$ node server/index.js`.\n\nRoutes:\n\n```\nGET /rooms -\u003e List all the rooms in JSON.\n\nGET /rooms/name/:name -\u003e Returns the rooms containing the name :name (using regex)\n\nGET /rooms/id/:roomId' -\u003e Returns the rooms with id :roomId\n\nGET /floors -\u003e List all the floors.\n\nGET /floors/id/:id -\u003e Returns the floors with id :id\n\nGET /buildings -\u003e List all the buildings\n\nGET /buildings/name/:name -\u003e List all the buildings containing name :name\n\nGET /buildings/id/:id -\u003e List all the buildings containing id :id\n\nGET /floor-polygons -\u003e List all the floor Polygons\n\nGET /floor-polygons/id/:floorId -\u003e Returns the floor polygons from floors with id :floorId\n\nGET /v-room-polygons -\u003e List all the Room polygons\n\nGET /v-room-polygons/name/:name -\u003e List all the RP with name :name.\n\nGET /v-room-polygons/id/:roomId -\u003e List all the RP with id :roomId.\n\nOPTIONS / -\u003e Gives the list of allowed request types.\n\nHEAD / -\u003e HTTP headers only, no body.\n\nTRACE / -\u003e Blocked for security reasons.\n```\n\n# CONTRIBUTE\n\nReach me out here or just make a PR.\n\n\u0026copy; Muhammad Mustadi - 2016\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathdroid%2Fcampusmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathdroid%2Fcampusmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathdroid%2Fcampusmap/lists"}