App\Http\Controllers\ExampleController::getElevation PHP Method

getElevation() public method

public getElevation ( )
    public function getElevation()
    {
        $d['a'] = \GoogleMaps::load('elevation')->setParamByKey('locations', '39.7391536,-104.9847034')->get();
        $d['b'] = \GoogleMaps::load('elevation')->setParamByKey('path', ['40.714728,-73.998672', '-34.397,150.644'])->setParamByKey('samples', 3)->get();
        $d['c'] = \GoogleMaps::load('elevation')->setParamByKey('path', 'enc:gfo}EtohhUxD@bAxJmGF')->setParamByKey('samples', 3)->getResponseByKey('results.elevation');
        dd($d);
    }