aamant/distance

calculating the distance between differents points

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

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'));