2017 © Pedro Peláez
 

library geotools

Geo Tools for PHP 5.4

image

bazo/geotools

Geo Tools for PHP 5.4

  • Thursday, March 20, 2014
  • by bazo
  • Repository
  • 1 Watchers
  • 13 Stars
  • 4,133 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

route-boxer

PHP implementation of Google Route Boxer, (*1)

http://gmaps-utility-library-dev.googlecode.com/svn/trunk/routeboxer/src/RouteBoxer.js, (*2)

Install

add this line to your composer.json, (*3)

"bazo/geotools" : "v0.1.0"

run composer install, (*4)

How to use


//add all points from calculated route $points = [ [48.167, 17.104], [48.399, 17.586], [48.908, 18.049], [49.22253, 18.734436], [48.728115, 21.255798], ]; $collection = new GeoTools\LatLngCollection($points); $boxer = new GeoTools\RouteBoxer(); //calculate boxes with 10km distance from the line between points $boxes = $boxer->box($collection, $distance = 10); //boxes now contain an array of LatLngBounds

Enjoy, (*5)

The Versions

20/03 2014

dev-master

9999999-dev https://github.com/bazo/route-boxer

Geo Tools for PHP 5.4

  Sources   Download

MIT

The Requires

 

geocoding geo geometry route boxing