code: function _getType (result) {
    let type = result.type;
    if (TYPES[type]) {
      if (type === 'Geography' && result.entityType) {
        type = type + ':' + result.entityType;
      }
      return TYPES[type];
    }
  
    return 'default';
  }
docs: Transform the feature type into a well known enum.