{"id":22165690,"url":"https://github.com/allsamir/restful-api","last_synced_at":"2025-08-17T20:04:17.204Z","repository":{"id":251338206,"uuid":"837104569","full_name":"Allsamir/RESTful-API","owner":"Allsamir","description":"This is the API repository where A given latitude and longitude as query parameters and returns the users close around 10 km of the given latitude and longitude value.","archived":false,"fork":false,"pushed_at":"2024-08-02T09:04:32.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T16:14:24.410Z","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/Allsamir.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":"2024-08-02T08:14:47.000Z","updated_at":"2024-08-02T09:04:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"f99d3a60-335b-4960-b1d9-15047611a15e","html_url":"https://github.com/Allsamir/RESTful-API","commit_stats":null,"previous_names":["allsamir/restful-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Allsamir/RESTful-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allsamir%2FRESTful-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allsamir%2FRESTful-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allsamir%2FRESTful-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allsamir%2FRESTful-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Allsamir","download_url":"https://codeload.github.com/Allsamir/RESTful-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allsamir%2FRESTful-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270899578,"owners_count":24664720,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-02T05:16:03.564Z","updated_at":"2025-08-17T20:04:17.099Z","avatar_url":"https://github.com/Allsamir.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js REST API with MongoDB for Geospatial Queries\n\nThis Node.js application provides a REST API that accepts latitude and longitude as input parameters and returns a sorted list of users within a 10-kilometer radius. It includes pagination and error handling for invalid or missing parameters.\n\n## Features\n\n- Store user data with latitude and longitude in MongoDB.\n- Query users within a 10-kilometer radius of provided coordinates.\n- Calculate distances using the Haversine formula.\n- Sort users by distance in ascending order.\n- Support pagination to limit results.\n- Error handling for missing or invalid input parameters.\n\n## Prerequisites\n\n- Node.js (v14 or later)\n- MongoDB (Atlas or local instance)\n\n## Getting Started\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/Allsamir/Blogging.git\ncd Blogging\n```\n### Install Dependencies\n\n``` bash\nnpm install\n```\n\n### Run the Application\n\n``` bash\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallsamir%2Frestful-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallsamir%2Frestful-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallsamir%2Frestful-api/lists"}