code: def infer_location(
              self,
              location_query,
              max_distance,
              google_key,
              foursquare_client_id,
              foursquare_client_secret,
              limit
          ):
          
          self.segments = [
              segment.infer_location(
                  location_query,
                  max_distance,
                  google_key,
                  foursquare_client_id,
                  foursquare_client_secret,
                  limit
              )
              for segment in self.segments
              ]
          return self
docs: In-place location inferring of segments
  
          Returns:
              This track