public function search($latitude, $longitude, $distance = 1000)
    {
        $params = ['query' => [
            'lat'      => $latitude,
            'lng'      => $longitude,
            'distance' => $distance,
        ]];

        return $this->client->request('GET', 'locations/search', $params);
    }
public function search($latitude, $longitude, $distance = 1000)
    {
        $params = ['query' => [
            'lat'      => $latitude,
            'lng'      => $longitude,
            'distance' => $distance,
        ]];

        return $this->client->request('GET', 'locations/search', $params);
    }
public function search ( $ latitude , $ longitude , $ distance = 1000 ) { $ params = [ 'query' => [ 'lat' => $ latitude , 'lng' => $ longitude , 'distance' => $ distance , ] ] ; return $ this -> client -> request ( 'GET' , 'locations/search' , $ params ) ; }
Search for a location by geographic coordinate.

@param int $latitude   Latitude of the center search coordinate. If used, ``$longitude`` is required
@param int $longitude  Longitude of the center search coordinate. If used, ``$latitude`` is required
@param int $distance   The distance in metres. Default is ``1000``m, max distance is 5km

@return Response

@link https://www.instagram.com/developer/endpoints/locations/#get_locations_search
Search for a location by geographic coordinate .