{"id":23489913,"url":"https://github.com/ranaparth/time-aware-polyline-php","last_synced_at":"2026-04-11T21:06:26.047Z","repository":{"id":62533155,"uuid":"102621628","full_name":"ranaparth/time-aware-polyline-php","owner":"ranaparth","description":"Encoder and decoder for time aware polyline in PHP","archived":false,"fork":false,"pushed_at":"2018-08-30T21:27:21.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T11:16:04.547Z","etag":null,"topics":["aware-polylines","composer","composer-package","php","php-library","polyline"],"latest_commit_sha":null,"homepage":null,"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/ranaparth.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}},"created_at":"2017-09-06T14:53:06.000Z","updated_at":"2023-03-31T07:02:45.000Z","dependencies_parsed_at":"2022-11-02T15:00:35.234Z","dependency_job_id":null,"html_url":"https://github.com/ranaparth/time-aware-polyline-php","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaparth%2Ftime-aware-polyline-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaparth%2Ftime-aware-polyline-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaparth%2Ftime-aware-polyline-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaparth%2Ftime-aware-polyline-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranaparth","download_url":"https://codeload.github.com/ranaparth/time-aware-polyline-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248907764,"owners_count":21181397,"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":["aware-polylines","composer","composer-package","php","php-library","polyline"],"created_at":"2024-12-25T00:12:35.864Z","updated_at":"2026-04-11T21:06:25.912Z","avatar_url":"https://github.com/ranaparth.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Time Aware Polylines in PHP\n=========================\nInspired from [Time aware polylines in javascript](https://github.com/hypertrack/time-aware-polyline-js)\n\n[![Latest Stable Version](https://poser.pugx.org/ranaparth/time-aware-polyline-php/version)](https://packagist.org/packages/ranaparth/time-aware-polyline-php) [![composer.lock available](https://poser.pugx.org/ranaparth/time-aware-polyline-php/composerlock)](https://packagist.org/packages/ranaparth/time-aware-polyline-php) [![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ranaparth/time-aware-polyline-php/blob/master/LICENSE) [![travis-ci](https://travis-ci.org/ranaparth/time-aware-polyline-php.svg?branch=master)](https://travis-ci.org/ranaparth/time-aware-polyline-php) [![codecov](https://codecov.io/gh/ranaparth/time-aware-polyline-php/branch/master/graph/badge.svg)](https://codecov.io/gh/ranaparth/time-aware-polyline-php)\n\n### Examples\n\n```php\n$var = new RanaParth\\Polyline\\TimeAwarePolyine;\n\n$gpxLogs = [\n    [19.13626, 72.92506, '2016-07-21T05:43:09+00:00'],\n    [19.13597, 72.92495, '2016-07-21T05:43:15+00:00']\n];\n\n$polyline = $var-\u003eencode($gpxLogs); // Output $polyline = 'spxsBsdb|Lymo`qvAx@TK';\n```\n\n```php\n$var = new RanaParth\\Polyline\\TimeAwarePolyine;\n\n$timeAwarePolyline = 'spxsBsdb|Lymo`qvAx@TK';\n$var-\u003esetPreviousPolyline($timeAwarePolyline);\n\n$gpxLog = [19.13597, 72.92495, '2016-07-21T05:43:15+00:00'];\n$var-\u003esetLastGpxLogs($gpxLog);\n$gpxLogs = [\n    [19.13553, 72.92469, '2016-07-21T05:43:21+00:00']\n];\n\n$polyline = $var-\u003eencode($gpxLogs) // Output $polyline = 'spxsBsdb|Lymo`qvAx@TKvAr@K';\n```\n\n```php\n$var = new RanaParth\\Polyline\\TimeAwarePolyine;\n\n$timeAwarePolyline = 'spxsBsdb|Lymo`qvAx@TKvAr@K';\n\n$gpxLogs = $var-\u003edecode($timeAwarePolyline);\n/*\n// Output\n\n$gpxLogs = [\n    [19.13626, 72.92506, '2016-07-21T05:43:09+00:00'],\n    [19.13597, 72.92495, '2016-07-21T05:43:15+00:00'],\n    [19.13553, 72.92469, '2016-07-21T05:43:21+00:00'],\n];\n*/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franaparth%2Ftime-aware-polyline-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franaparth%2Ftime-aware-polyline-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franaparth%2Ftime-aware-polyline-php/lists"}