{"id":19143807,"url":"https://github.com/ashwin-rajeev/location-history-server","last_synced_at":"2025-02-22T19:26:21.250Z","repository":{"id":141448617,"uuid":"431939986","full_name":"Ashwin-Rajeev/location-history-server","owner":"Ashwin-Rajeev","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-25T18:30:57.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T15:45:43.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/Ashwin-Rajeev.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":"2021-11-25T18:19:18.000Z","updated_at":"2021-11-25T18:30:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c14dec3-7b5c-4793-856b-dd2329302bb7","html_url":"https://github.com/Ashwin-Rajeev/location-history-server","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/Ashwin-Rajeev%2Flocation-history-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashwin-Rajeev%2Flocation-history-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashwin-Rajeev%2Flocation-history-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashwin-Rajeev%2Flocation-history-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ashwin-Rajeev","download_url":"https://codeload.github.com/Ashwin-Rajeev/location-history-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240224798,"owners_count":19767808,"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-09T07:32:52.916Z","updated_at":"2025-02-22T19:26:21.226Z","avatar_url":"https://github.com/Ashwin-Rajeev.png","language":"Go","readme":"# Location History Server\n\ntoy in-memory location history server.\n\n## Steps to Execute \n\n#### 1. export envs \n```bash\nexport HISTORY_SERVER_LISTEN_ADDR=8080\nexport LOCATION_HISTORY_TTL_SECONDS=50s\n```\n#### 2. start the application\n```bash\ngo run main.go\n```\n\n\n### Add Location History [POST]\n\n\u003e http://localhost:8080/location/def457/now\n\nSample request body\n```bash\n{\n\t\"lat\": 19.34,\n\t\"lng\": 58.78\n}\n```\n\nSample response body\n```bash\n{\n    \"status\": \"ok\",\n    \"result\": \"success\"\n}\n```\n### Get Location History [GET]\n\n\u003e http://localhost:8080/location/def456?max=2\n\nSample response body\n```bash\n{\n\t\"order_id\": \"abc123\",\n\t\"history\": [\n\t\t{\"lat\": 12.34, \"lng\": 56.78},\n\t\t{\"lat\": 12.34, \"lng\": 56.79}\n\t]\n}\n```\n\n### Delete Location History [DELETE]\n\n\u003e http://localhost:8080/location/def457\n\nSample response body\n```bash\n{\n    \"status\": \"ok\",\n    \"result\": \"success\"\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwin-rajeev%2Flocation-history-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwin-rajeev%2Flocation-history-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwin-rajeev%2Flocation-history-server/lists"}