aamant/distance

calculating the distance between differents points

0.1.1 2014-04-17 14:45 UTC

This package is not auto-updated.

Last update: 2024-11-19 07:55:07 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'));