2017 © Pedro Peláez
 

project time-aware-polyline-php

Time aware ployline in php

image

ranaparth/time-aware-polyline-php

Time aware ployline in php

  • Wednesday, September 6, 2017
  • by ranaparth
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Time Aware Polylines in PHP

Inspired from Time aware polylines in javascript, (*1)

Latest Stable Version composer.lock available LICENSE travis-ci codecov, (*2)

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'],
];
*/

The Versions

06/09 2017

dev-master

9999999-dev

Time aware ployline in php

  Sources   Download

dbad

The Requires

  • php >=7.0

 

The Development Requires

by Rana Amrit Parth

composer package polyline

06/09 2017

v0.1.0

0.1.0.0

Time aware ployline in php

  Sources   Download

dbad

The Requires

  • php >=5.4

 

The Development Requires

by Rana Amrit Parth

composer package polyline