Use u for uncertainty parameter
This commit is contained in:
parent
842f2b047c
commit
e335a80fda
2 changed files with 2 additions and 2 deletions
|
@ -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, [
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue