Skip to content

A simple implementation of Google's Polyline Encoding algorithm in PHP.

License

Notifications You must be signed in to change notification settings

sourcetoad/Bytey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bytey

A simple implementation of Google's Polyline Encoding algorithm in PHP.

main License: MIT

Install

This package is currently supporting PHP 8.2 and above.

composer require sourcetoad/bytey

Documentation

Encoding

use Sourcetoad\Bytey;

$points = [
    [38.5, -120.2],
    [40.7, -120.95],
    [43.252, -126.453]
];

$encoded = Bytey::googlePolylineEncode($points);
// Outputs "_p~iF~ps|U_ulLnnqC_mqNvxq`@"

About

A simple implementation of Google's Polyline Encoding algorithm in PHP.

Resources

License

Stars

Watchers

Forks

Languages