{"id":22477642,"url":"https://github.com/shsamariddin/ridesharing","last_synced_at":"2025-03-27T17:46:08.383Z","repository":{"id":161820838,"uuid":"253275488","full_name":"ShSamariddin/Ridesharing","owner":"ShSamariddin","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-05T17:43:33.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T21:12:09.011Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/ShSamariddin.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":"2020-04-05T16:07:33.000Z","updated_at":"2020-09-28T11:12:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"515b6571-882b-47b3-a4ae-71fa2f1dc39c","html_url":"https://github.com/ShSamariddin/Ridesharing","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/ShSamariddin%2FRidesharing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShSamariddin%2FRidesharing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShSamariddin%2FRidesharing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShSamariddin%2FRidesharing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShSamariddin","download_url":"https://codeload.github.com/ShSamariddin/Ridesharing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245897787,"owners_count":20690457,"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-06T14:11:47.442Z","updated_at":"2025-03-27T17:46:08.364Z","avatar_url":"https://github.com/ShSamariddin.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ridesharing\n\n**Стартовая точка**\n \nТак как  в условии не указаны координаты стартовой точки, то я решил выбрать в качестве стартовой точки координаты  офиса JetBrains.\n\n**Метрика**\n\n Расстояние между двумя точками    я нахожу с помощью Евклидовой метрик. Хотя я нашел  api который  находит  длину дороги, по карте города, между двумя точками. Но api оказался платным.\n \n**Оценка**\n\nМоей оценкой будет - то сколько дополнительного расстояния пройдет водитель, по сравнению с расстоянием до своей финальный точки, если подвезет этого  пассажира.\n\n*например:*\n\n* стартовая точка: S(x1,y1)\n* финальная точка   пассажира: P(x2, y2)\n* финальная точка  водителя: D(x3,y3) \n\nЕсли он подвезет пассажира то он проедет: dist(S, P) + dist(P, D) \nОчевидно что если водитель подвезет  пассажира то оптимальным маршрутом будет  сначала  довезти пассажира до финальный точки а потом поехать до своей финальный точки\n\nЕсли не подвезет то он проедет: dist(S, D)\n\nоценка будет: (dist(S, P) + dist(P, D)) - dist(S, D)\n\n**Ответ**\n \nЧем меньше оценка тем удобнее подвезти водителю  пассажира. Поэтому отсортируем водителей по возрастанию оценки ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshsamariddin%2Fridesharing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshsamariddin%2Fridesharing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshsamariddin%2Fridesharing/lists"}