{"id":16752415,"url":"https://github.com/whizsid/outofway","last_synced_at":"2025-10-16T07:43:48.043Z","repository":{"id":98598769,"uuid":"194457139","full_name":"whizsid/OutOfWay","owner":"whizsid","description":"Map Matching Algorithm By PHP","archived":false,"fork":false,"pushed_at":"2019-08-17T07:45:52.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T06:07:34.087Z","etag":null,"topics":["geolocation","gps","map-matching","php","pinned"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/whizsid.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":"2019-06-29T23:37:04.000Z","updated_at":"2021-09-16T23:41:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"3211ef1f-fbaa-474e-8175-d2393a20f10a","html_url":"https://github.com/whizsid/OutOfWay","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/whizsid/OutOfWay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whizsid%2FOutOfWay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whizsid%2FOutOfWay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whizsid%2FOutOfWay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whizsid%2FOutOfWay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whizsid","download_url":"https://codeload.github.com/whizsid/OutOfWay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whizsid%2FOutOfWay/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266928191,"owners_count":24007858,"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-07-24T02:00:09.469Z","response_time":99,"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":["geolocation","gps","map-matching","php","pinned"],"created_at":"2024-10-13T02:46:56.252Z","updated_at":"2025-10-16T07:43:42.988Z","avatar_url":"https://github.com/whizsid.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://i.imgur.com/fr2hWkb.png\"\u003e\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-brightgreen.svg\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n \u003ca href=\"https://github.styleci.io/repos/194457139\"\u003e\u003cimg src=\"https://github.styleci.io/repos/194457139/shield?branch=master\" alt=\"StyleCI\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nOutOfWay is a map matching library written in PHP. This package will returning matched coordinates when you passed  road coordinates and real coordinates.\n\n![OutOfWay Map Matching Algorythm Output](https://i.imgur.com/wdV3oWu.png)\n\n## Installation\n\nYou can install it with composer package manager.\n\n```\n\ncomposer require whizsid/outofway\n\n```\n\n## Usage\n\nOutOfWay is easy to use. Only you want is call three methods. \n\n```\n// Creating new OutOfWay instance\n$outOfWay = new OutOfWay;\n\n// Setting the actual coordinates of the area.\n$outOfWay-\u003esetActualCoordinates($outOfWay::$helper::parseCoordinates($passed));\n\n// Passing error GPS coordinates\n$outOfWay-\u003esetVehicleCoordinates($outOfWay::$helper::parseCoordinates($vehicle));\n\n// Getting matched coordinates\n$outOfWay-\u003egetMatchedCoordinates();\n\n```\n\nYou want to pass a multidimentional array that containing `lat`,`lng` keys for each sub arrays to `Helper::parseCoordinates` method.\n\n\nThis `getMatchedCoordinate()` method will return an array of `Coordinate` instances. You can use `getLatitude`,`getLongitude` methods to retrieve latitude and longitude from a `Coordinate`\n\n```\n$lat = $coord-\u003egetLatitude();\n$lng = $coord-\u003egetLongitude()\n```\n\n## Run Demo\n\n1. Clone the project.\n\n```\ngit clone https://github.com/whizsid/OutOfWay.git\n\n```\n\n2. Go to the `example` directory\n\n```\ncd example\n\n```\n3. Install depedencies.\n\n```\ncomposer install\n```\n\n4. Run local serve in it and access from web browser.\n\n```\nphp -S 127.0.0.1:8000\n```\n\n## TODO\n\n1. Filtering vehicle coordinates that have more errors.\n2. Checking tangent when sorting coordinates from distance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhizsid%2Foutofway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhizsid%2Foutofway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhizsid%2Foutofway/lists"}