code: function(options){
      if (options.enableEventLogging === false) return false;
      if (options.origin && options.origin.indexOf('api.mapbox.com') == -1) return false;
      // hard to make sense of events when a local instance is suplementing results from origin
      if (options.localGeocoder) return false;
      // hard to make sense of events when a custom filter is in use
      if (options.filter) return false;
      return true;
    }
docs: Check whether events should be logged
  Clients using a localGeocoder or an origin other than mapbox should not have events logged
  @private