From ebb5ff8fe1bcf289a29992fa632b53af89b5395b Mon Sep 17 00:00:00 2001 From: Alexander Taberner <40291856+AlexTPickr@users.noreply.github.com> Date: Fri, 14 Sep 2018 14:56:18 +0100 Subject: [PATCH] Fixed bug with durationText() --- src/Response/Element.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Response/Element.php b/src/Response/Element.php index 9514071..a564110 100644 --- a/src/Response/Element.php +++ b/src/Response/Element.php @@ -61,6 +61,6 @@ public function duration() */ public function durationText() { - return $this->element['distance']['text']; + return $this->element['duration']['text']; } -} \ No newline at end of file +}