Merge branch 'feature/fetch-api' into develop

This commit is contained in:
Jonny Barnes 2016-10-03 14:51:32 +01:00
commit 69d6e16ab9
6 changed files with 4 additions and 4 deletions

View file

@ -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, [

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View file

@ -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) {