Google Maps Elevation

Instantiate Elevation
$elevation = eden('google')->maps($_SESSION['token'])->elevation();
Elevation Methods
Method Arguments Returns Description
$elevation->setPath($latitude, $longtitude);
  1. string|int|float
  2. string|int|float
Eden_Google_Maps_Elevation Defines a path on the earth for which to return elevation data.
$elevation->setSamples($samples);
  1. string|integer
Eden_Google_Maps_Elevation Specifies the number of sample points along a path for which to return elevation data.
$elevation->getResponse($location, $sensor = 'false');
  1. string
  2. - latitude,longitude pair in string(e.g. "40.714728,-73.998672")
array Returns elevation information

© 2012 Openovate Labs. All rights reserved.