aamant/distance

calculating the distance between differents points

0.1.1 2014-04-17 14:45 UTC

README

Calculating the distance between differents points

Installation

Just create a composer.json file for your project:

{
    "require": {
        "aamant/distance": "@stable"
    }
}

Usage

$distance = new Distance(
    new GoogleMapProvider(new CurlHttpAdapter, 'fr-FR', GoogleMapProvider::MODE_BICYCLING));
$result = $distance->distance(array('montpellier'), array('paris', 'perpignan', 'lyon'));