Browse Source

disable geocoding

pull/13/head
Aaron Parecki 6 years ago
parent
commit
da7b0f4681
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      compass/app/Http/Controllers/Api.php

+ 4
- 1
compass/app/Http/Controllers/Api.php View File

@ -269,13 +269,16 @@ class Api extends BaseController
];
if($last_location) {
/*
// 2017-08-22 Don't geocode cause it takes too long. Maybe make a separate route for this later.
$geocode = self::geocode(['latitude'=>$last_location['geometry']['coordinates'][1], 'longitude'=>$last_location['geometry']['coordinates'][0]]);
$response['geocode'] = [
'full_name' => $geocode->full_name,
'locality' => $geocode->locality,
'country' => $geocode->country
];
#$response['geocode'] = null;
*/
$response['geocode'] = null;
// Notify subscribers that new data is available
if($db->ping_urls) {

Loading…
Cancel
Save