aamant / distance
计算不同点之间的距离
0.1.1
2014-04-17 14:45 UTC
Requires
- php: >=5.3.0
- illuminate/support: 4.1.*
- willdurand/geocoder: 2.4.*
This package is not auto-updated.
Last update: 2024-09-24 06:55:26 UTC
README
计算不同点之间的距离
安装
只需为您的项目创建一个 composer.json
文件
{ "require": { "aamant/distance": "@stable" } }
用法
$distance = new Distance( new GoogleMapProvider(new CurlHttpAdapter, 'fr-FR', GoogleMapProvider::MODE_BICYCLING)); $result = $distance->distance(array('montpellier'), array('paris', 'perpignan', 'lyon'));