2017 © Pedro Peláez
 

library distance

image

yrizos/distance

  • Monday, September 29, 2014
  • by yrizos
  • Repository
  • 3 Watchers
  • 15 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

distance

PHP Wrapper around Google's DistanceMatrix., (*1)

instalation

Through composer, (*2)

"require": {
    "yrizos/distance": "*"
}

usage

Instantiate Api Class with your API Key:, (*3)

$api = new \DistanceMatrix\Api('apikey');

Add a destination (Required) :, (*4)

$api->addDestination('Αγιου Γεωργίου 5, Θέρμη, Θεσσαλονίκη');

Add an origin (Required):, (*5)

$api->addOrigin('Αριστοτέλους 35, Εύοσμος, Θεσσαλονίκη');

Set the Units : * metric (default) * imperial, (*6)

$api->setUnits('imperial');

Set the Output : * json (default) * xml, (*7)

$api->setOutput('xml');

Set the Mode : * bicycling * walking * driving (default), (*8)

$api->setMode('walking');

Set the Language : * en (default), (*9)

$api->setLanguage('el');

Finally, run this thing :, (*10)

$results = $api->run();

license

MIT, (*11)

The Versions

29/09 2014

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

29/09 2014

0.2.0

0.2.0.0

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

04/07 2014

0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

  • php >=5.4.0