From e335a80fda5addd26ba0dd60e1acdcf1ee5a1382 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Mon, 3 Oct 2016 14:46:53 +0100 Subject: [PATCH] Use u for uncertainty parameter --- app/Http/Controllers/MicropubClientController.php | 2 +- resources/assets/js/newnote.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index 39842046..a6c4f359 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -308,7 +308,7 @@ class MicropubClientController extends Controller try { $query = 'geo:' . $latitude . ',' . $longitude; - if ($request->input('uncertainty') !== null) { + if ($request->input('u') !== null) { $query .= ';u=' . $request->input('uncertainty'); } $response = $this->guzzleClient->get($micropubEndpoint, [ diff --git a/resources/assets/js/newnote.js b/resources/assets/js/newnote.js index 30481af0..265da4d7 100644 --- a/resources/assets/js/newnote.js +++ b/resources/assets/js/newnote.js @@ -18,7 +18,7 @@ function getLocation() { function addPlacesMap(latitude, longitude, uncertainty) { //get the nearby places - fetch('/places/near/' + latitude + '/' + longitude + '?' + uncertainty, { + fetch('/places/near/' + latitude + '/' + longitude + '?u=' + uncertainty, { credentials: 'same-origin', method: 'get' }).then(function (response) {