PHPackages                             ranaparth/time-aware-polyline-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ranaparth/time-aware-polyline-php

ActiveProject[Utility &amp; Helpers](/categories/utility)

ranaparth/time-aware-polyline-php
=================================

Time aware ployline in php

v0.5.4(7y ago)112MITPHPPHP &gt;=7.0

Since Sep 6Pushed 7y agoCompare

[ Source](https://github.com/ranaparth/time-aware-polyline-php)[ Packagist](https://packagist.org/packages/ranaparth/time-aware-polyline-php)[ RSS](/packages/ranaparth-time-aware-polyline-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (9)Used By (0)

Time Aware Polylines in PHP
===========================

[](#time-aware-polylines-in-php)

Inspired from [Time aware polylines in javascript](https://github.com/hypertrack/time-aware-polyline-js)

[![Latest Stable Version](https://camo.githubusercontent.com/62a8775c1f592f9a577da261f32e31354cf2ef96a8a25ca44c0610e21987dfc3/68747470733a2f2f706f7365722e707567782e6f72672f72616e6170617274682f74696d652d61776172652d706f6c796c696e652d7068702f76657273696f6e)](https://packagist.org/packages/ranaparth/time-aware-polyline-php) [![composer.lock available](https://camo.githubusercontent.com/ec8b9459dd50e540b28780d7e586aee1d6a4bceb31ae2bb21cbbabaafb752879/68747470733a2f2f706f7365722e707567782e6f72672f72616e6170617274682f74696d652d61776172652d706f6c796c696e652d7068702f636f6d706f7365726c6f636b)](https://packagist.org/packages/ranaparth/time-aware-polyline-php) [![LICENSE](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/ranaparth/time-aware-polyline-php/blob/master/LICENSE) [![travis-ci](https://camo.githubusercontent.com/51e16994a6a3818bbd2226cd4bc3aed35f2d7323d3003d5b44c3af7526d04ded/68747470733a2f2f7472617669732d63692e6f72672f72616e6170617274682f74696d652d61776172652d706f6c796c696e652d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ranaparth/time-aware-polyline-php) [![codecov](https://camo.githubusercontent.com/f52c189d4ce3d1526831c69efa7ff1de9e937d02913d773c9ea6578021f247d8/68747470733a2f2f636f6465636f762e696f2f67682f72616e6170617274682f74696d652d61776172652d706f6c796c696e652d7068702f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/ranaparth/time-aware-polyline-php)

### Examples

[](#examples)

```
$var = new RanaParth\Polyline\TimeAwarePolyine;

$gpxLogs = [
    [19.13626, 72.92506, '2016-07-21T05:43:09+00:00'],
    [19.13597, 72.92495, '2016-07-21T05:43:15+00:00']
];

$polyline = $var->encode($gpxLogs); // Output $polyline = 'spxsBsdb|Lymo`qvAx@TK';
```

```
$var = new RanaParth\Polyline\TimeAwarePolyine;

$timeAwarePolyline = 'spxsBsdb|Lymo`qvAx@TK';
$var->setPreviousPolyline($timeAwarePolyline);

$gpxLog = [19.13597, 72.92495, '2016-07-21T05:43:15+00:00'];
$var->setLastGpxLogs($gpxLog);
$gpxLogs = [
    [19.13553, 72.92469, '2016-07-21T05:43:21+00:00']
];

$polyline = $var->encode($gpxLogs) // Output $polyline = 'spxsBsdb|Lymo`qvAx@TKvAr@K';
```

```
$var = new RanaParth\Polyline\TimeAwarePolyine;

$timeAwarePolyline = 'spxsBsdb|Lymo`qvAx@TKvAr@K';

$gpxLogs = $var->decode($timeAwarePolyline);
/*
// Output

$gpxLogs = [
    [19.13626, 72.92506, '2016-07-21T05:43:09+00:00'],
    [19.13597, 72.92495, '2016-07-21T05:43:15+00:00'],
    [19.13553, 72.92469, '2016-07-21T05:43:21+00:00'],
];
*/
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Recently: every ~0 days

Total

8

Last Release

2814d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4

v0.2.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/dff3d37de2aac2d477e81a4c087ae0d85f244a4508c65dfd5ced39dc1f252829?d=identicon)[ranaparth](/maintainers/ranaparth)

---

Top Contributors

[![ranaparth](https://avatars.githubusercontent.com/u/8591204?v=4)](https://github.com/ranaparth "ranaparth (36 commits)")

---

Tags

aware-polylinescomposercomposer-packagephpphp-librarypolylinecomposerpackagepolyline

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ranaparth-time-aware-polyline-php/health.svg)

```
[![Health](https://phpackages.com/badges/ranaparth-time-aware-polyline-php/health.svg)](https://phpackages.com/packages/ranaparth-time-aware-polyline-php)
```

###  Alternatives

[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k289.5M63](/packages/jean85-pretty-package-versions)[composer/satis

Simple Repository Generator

3.3k1.4M17](/packages/composer-satis)[fxp/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

8894.8M41](/packages/fxp-composer-asset-plugin)[foxy/foxy

Fast, reliable, and secure NPM/Yarn/pnpm bridge for Composer

177287.5k25](/packages/foxy-foxy)[netojose/laravel-bootstrap-4-forms

Bootstrap 4 form builder for Laravel 5

182115.3k](/packages/netojose-laravel-bootstrap-4-forms)[cpx/cpx

Run any command from any composer package, even if it's not installed in your project.

40410.9k1](/packages/cpx-cpx)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
