From ca4900730f10d06cd91e82dc14804b95c4c62d71 Mon Sep 17 00:00:00 2001 From: Jeroen Desloovere Date: Wed, 20 May 2015 17:08:57 +0200 Subject: [PATCH] Readme updated --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 07fd6d3..6839dbb 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,12 @@ $items = array( **Get distance between two locations** ```php -$distance = Distance::between($latitude1, $longitude1, $latitude2, $longitude2); +$distance = Distance::between( + $latitude1, + $longitude1, + $latitude2, + $longitude2 +); // dump data echo 'Distance between the two locations = ' . $distance . ' km'; @@ -62,7 +67,11 @@ echo 'Distance between the two locations = ' . $distance . ' km'; **Get closest distance from location 1 to one of the two locations (2 and 3)** ```php -$distance = Distance::getClosest($latitude1, $longitude1, $items); +$distance = Distance::getClosest( + $latitude1, + $longitude1, + $items +); // dump data echo 'The closest location to location 1 is ' . $distance['title'] . ' and the distance between them is ' . $distance['distance'] . ' km';