Property | Type | Description | |
---|---|---|---|
$precision | integer | Overwrite this property in extended class to adjust precision of numbers. !!!CAUTION!!! 1) Adjusting this value will not guarantee that third party libraries will understand the change. 2) Float point arithmetic IS NOT real number arithmetic. PHP's internal float precision may contribute to undesired rounding. |
Method | Description | |
---|---|---|
decode ( string $string ) : array | Reverse Google Polyline algorithm on encoded string. | |
encode ( array $points ) : string | Apply Google Polyline algorithm to list of points. | |
flatten ( array $array ) : array | Reduce multi-dimensional to single list | |
pair ( array $list ) : array | Concat list into pairs of points |
protected static int $precision | ||
return | integer |