{"id":34179284,"url":"https://github.com/juhsinto/aupubtoiletserver","last_synced_at":"2026-03-09T22:03:38.977Z","repository":{"id":49606077,"uuid":"216292744","full_name":"juhsinto/AUPubToiletServer","owner":"juhsinto","description":"LooCation - Public Toilet Finder - Back-End","archived":false,"fork":false,"pushed_at":"2024-07-19T04:26:16.000Z","size":78,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-18T11:20:17.221Z","etag":null,"topics":["geojson","golang","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"https://tiny-ruby-snapper-tie.cyclic.app/","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/juhsinto.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":"2019-10-20T01:40:19.000Z","updated_at":"2024-07-19T04:26:19.000Z","dependencies_parsed_at":"2024-06-21T16:48:47.579Z","dependency_job_id":"761f5647-6f8e-4baa-a858-6ea10c02845a","html_url":"https://github.com/juhsinto/AUPubToiletServer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/juhsinto/AUPubToiletServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juhsinto%2FAUPubToiletServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juhsinto%2FAUPubToiletServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juhsinto%2FAUPubToiletServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juhsinto%2FAUPubToiletServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juhsinto","download_url":"https://codeload.github.com/juhsinto/AUPubToiletServer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juhsinto%2FAUPubToiletServer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30314410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","golang","nodejs","rest-api"],"created_at":"2025-12-15T13:14:09.154Z","updated_at":"2026-03-09T22:03:38.972Z","avatar_url":"https://github.com/juhsinto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# National (AU) Public Toilet API\r\n\r\nREST API built with Express, Mongo (hosted externally - on MongoDB), and node\r\n\r\nData from https://data.gov.au/dataset/ds-dga-553b3049-2b8b-46a2-95e6-640d7986a8c1/details\r\n\r\n## EndPoints\r\n\r\n- GET: /api\r\n- GET: /api/toilets\r\n- POST:/api/toilets with body {lat: \u003cnumber\u003e, long: \u003cnumber\u003e}\r\n- POST:/api/toilets-dist with body {lat: \u003cnumber\u003e, long: \u003cnumber\u003e, dist: \u003cnumber\u003e}\r\n\r\n## The POST endpoint, finds the toilets 500 meters closest to the given GPS location\r\n\r\n`db.toilets.find( { loc: { $near : { $geometry: { type: \"Point\", coordinates: [144.957442, -37.803926] }, $minDistance: 0, $maxDistance: 500 } } } )`\r\n\r\nThis server uses ports 8080 and 8443\r\n\r\n# TODO\r\n\r\n- create tests (assertions) - https://stackoverflow.com/questions/6158933/how-is-an-http-post-request-made-in-node-js\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuhsinto%2Faupubtoiletserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuhsinto%2Faupubtoiletserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuhsinto%2Faupubtoiletserver/lists"}